more nvim config updates

This commit is contained in:
Proctor
2021-08-16 19:16:08 -05:00
parent 8108b345d5
commit 72a5461153
4 changed files with 33 additions and 4 deletions

View File

@@ -0,0 +1,13 @@
(module dotfiles.plugin.colorizer
{autoload {colorizer colorizer}})
(colorizer.setup {"*" {}}
{:RGB true ; #RGB hex codes, like #F00
:RRGGBB true ; #RRGGBB hex codes, like #00FF00
:names true ; "Name" codes like Blue
:RRGGBBAA true ; #RRGGBBAA hex codes
:rgb_fn true ; CSS rgb() and rgba() functions
:hsl_fn true ; CSS hsl() and hsla() functions
:css true ; Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
:css_fn true ; Enable all CSS *functions*: rgb_fn, hsl_fn
})

View File

@@ -43,7 +43,7 @@
:gr "lua vim.lsp.buf.references()"
:K "lua vim.lsp.buf.hover()"
"[g" "lua vim.lsp.diagnostic.goto_prev()"
"g" "lua vim.lsp.diagnostic.goto_prev()"
"]g" "lua vim.lsp.diagnostic.goto_prev()"
:<leader>ca "lua vim.lsp.buf.codeaction()"
:<leader>sld "lua vim.lsp.diagnostic.show_line_diagnostics()"
:<leader>rn "lua vim.lsp.buf.rename()"

View File

@@ -3,4 +3,19 @@
(treesitter.setup
{:highlight {:enable true
:additional_vim_regex_highlighting false}})
:additional_vim_regex_highlighting false}
:rainbow {:enable true
:extended_mode true ; Also highlight non-bracket delimiters like html tags, boolean or table: lang -> boolean
:max_file_lines 1000 ; Do not enable for files with more than 1000 lines, int
:colors [
:#dc322f ; red
:#b58900 ; yellow
:#d33682 ; magenta
:#859900 ; green
:#2aa198 ; cyan
:#268bd2 ; blue
:#6c71c4 ; violet / brmagenta
] ; table of hex strings
}
})

View File

@@ -40,7 +40,7 @@
:kabouzeid/nvim-lspinstall {} ; NeoVim lsp server installs
:airblade/vim-gitgutter {} ; Git
:kovisoft/paredit {}
:luochen1990/rainbow {}
; :luochen1990/rainbow {}
:jiangmiao/auto-pairs {} ; backets, parens, and quotes in pairs
:nvim-treesitter/nvim-treesitter {:run ":TSUpdate" :mod :treesitter}
:hashivim/vim-terraform {} ; Terraform
@@ -55,7 +55,8 @@
:tpope/vim-vinegar {}
:radenling/vim-dispatch-neovim {} ; Clojure
:nvim-telescope/telescope.nvim {:requires [[:nvim-lua/popup.nvim] [:nvim-lua/plenary.nvim]] :mod :telescope}
:p00f/nvim-ts-rainbow {}
:norcalli/nvim-colorizer.lua {:mode :colorizer}
}
; :tpope/vim-fireplace {} ; Clojure