mirror of
https://github.com/maxmx03/dracula.nvim.git
synced 2026-09-10 07:26:19 -04:00
fix highlights, changes: readme.md, install.md
This commit is contained in:
parent
a4b1acb138
commit
3991efed1b
42
INSTALL.md
42
INSTALL.md
|
|
@ -1,17 +1,39 @@
|
|||
### [Foobar](https://foobar.com)
|
||||
### [Neovim](https://neovim.io)
|
||||
|
||||
#### Install using Git
|
||||
#### Prerequisits
|
||||
|
||||
If you are a git user, you can install the theme and keep up to date by cloning the repo:
|
||||
To install dracula you need a plugin manager.
|
||||
A plugin manager is a tool that helps users install and manage plugins.
|
||||
Below is a list of some plugin managers that you could install.
|
||||
|
||||
git clone https://github.com/dracula/foobar.git
|
||||
- [lazy.nvim](folke/lazy.nvim) *recommended*
|
||||
- [packer.nvim](wbthomason/packer.nvim)
|
||||
- [vim-plug](https://github.com/junegunn/vim-plug)
|
||||
|
||||
#### Install manually
|
||||
#### Install using Plugin Manager
|
||||
|
||||
Download using the [GitHub .zip download](https://github.com/dracula/foobar/archive/master.zip) option and unzip them.
|
||||
Here's an example of how to install dracula using the [lazy.nvim](https://github.com/folke/lazy.nvim) plugin manager:
|
||||
|
||||
#### Activating theme
|
||||
require('lazy').setup({
|
||||
{
|
||||
'dracula/nvim',
|
||||
lazy = false, -- make sure we load this during startup if it is your main colorscheme
|
||||
priority = 1000, -- make sure to load this before all the other start plugins
|
||||
config = function ()
|
||||
local dracula = require('dracula')
|
||||
|
||||
1. Do this
|
||||
2. Then that
|
||||
3. Boom! It's working
|
||||
dracula.setup({})
|
||||
|
||||
vim.cmd('colorscheme dracula')
|
||||
end
|
||||
},
|
||||
})
|
||||
|
||||
Lazy will install Dracula colorscheme in the following directories:
|
||||
|
||||
DATA DIRECTORY (DEFAULT)
|
||||
*$XDG_DATA_HOME* Nvim: stdpath("data")
|
||||
Unix: ~/.local/share ~/.local/share/nvim/lazy
|
||||
Windows: ~/AppData/Local ~/AppData/Local/nvim-data/lazy
|
||||
|
||||
That's it!
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
# Dracula for [Neovim](https://neovim.io)
|
||||
Created with [colorgen-nvim](https://github.com/ChristianChiarulli/colorgen-nvim)
|
||||
|
||||
> A dark theme for [Neovim](https://neovim.io).
|
||||
|
||||
|
|
@ -12,9 +13,8 @@ All instructions can be found at [draculatheme.com/neovim](https://draculatheme.
|
|||
|
||||
This theme is maintained by the following person(s) and a bunch of [awesome contributors](https://github.com/dracula/neovim/graphs/contributors).
|
||||
|
||||
| [](https://github.com/zenorocha) |
|
||||
| [](https://github.com/maxmx03) |
|
||||
| ---------------------------------------------------------------------------------------- |
|
||||
| [Max](https://github.com/maxmx03) |
|
||||
|
||||
## Community
|
||||
|
||||
|
|
|
|||
|
|
@ -154,6 +154,7 @@
|
|||
'@boolean' = 'purple'
|
||||
'@number' = 'purple'
|
||||
'@float' = 'purple'
|
||||
'@label.json' = 'cyan'
|
||||
'@exception' = 'link:Exception'
|
||||
'@type' = 'link:Type'
|
||||
'@type.dart' = 'link:@type'
|
||||
|
|
@ -163,8 +164,8 @@
|
|||
'@type.qualifier' = 'pink'
|
||||
'@storageclass' = 'pink'
|
||||
'@attribute' = 'pink'
|
||||
'@field' = 'cyan - i'
|
||||
'@property' = 'fg'
|
||||
'@field' = 'fg'
|
||||
'@property' = 'link:@field'
|
||||
'@variable' = 'fg'
|
||||
'@variable.builtin' = 'purple'
|
||||
'@constant' = 'purple'
|
||||
|
|
|
|||
|
|
@ -3,7 +3,9 @@ require("dracula.autocmd")
|
|||
local theme = require("dracula.theme")
|
||||
|
||||
M.setup = function()
|
||||
vim.cmd("hi clear")
|
||||
if vim.g.colors_name then
|
||||
vim.cmd("hi clear")
|
||||
end
|
||||
|
||||
vim.o.background = "dark"
|
||||
if vim.fn.exists("syntax_on") then
|
||||
|
|
|
|||
|
|
@ -131,6 +131,7 @@ theme.set_highlights = function()
|
|||
hl(0, "@boolean", { fg = c.purple, bg = 'NONE' })
|
||||
hl(0, "@number", { fg = c.purple, bg = 'NONE' })
|
||||
hl(0, "@float", { fg = c.purple, bg = 'NONE' })
|
||||
hl(0, "@label.json", { fg = c.cyan, bg = 'NONE' })
|
||||
hl(0, "@exception", { link = 'Exception' })
|
||||
hl(0, "@type", { link = 'Type' })
|
||||
hl(0, "@type.dart", { link = '@type' })
|
||||
|
|
@ -140,8 +141,8 @@ theme.set_highlights = function()
|
|||
hl(0, "@type.qualifier", { fg = c.pink, bg = 'NONE' })
|
||||
hl(0, "@storageclass", { fg = c.pink, bg = 'NONE' })
|
||||
hl(0, "@attribute", { fg = c.pink, bg = 'NONE' })
|
||||
hl(0, "@field", { fg = c.cyan, bg = 'NONE', italic=true, })
|
||||
hl(0, "@property", { fg = c.fg, bg = 'NONE' })
|
||||
hl(0, "@field", { fg = c.fg, bg = 'NONE' })
|
||||
hl(0, "@property", { link = '@field' })
|
||||
hl(0, "@variable", { fg = c.fg, bg = 'NONE' })
|
||||
hl(0, "@variable.builtin", { fg = c.purple, bg = 'NONE' })
|
||||
hl(0, "@constant", { fg = c.purple, bg = 'NONE' })
|
||||
|
|
|
|||
Loading…
Reference in a new issue