From 72a54611533618a820a760e1a8139709636a40be Mon Sep 17 00:00:00 2001 From: Proctor Date: Mon, 16 Aug 2021 19:16:08 -0500 Subject: [PATCH] more nvim config updates --- .../nvim/fnl/dotfiles/plugin/colorizer.fnl | 13 +++++++++++++ .../nvim/fnl/dotfiles/plugin/lspconfig.fnl | 2 +- .../nvim/fnl/dotfiles/plugin/treesitter.fnl | 17 ++++++++++++++++- nvim/.config/nvim/fnl/dotfiles/plugins.fnl | 5 +++-- 4 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 nvim/.config/nvim/fnl/dotfiles/plugin/colorizer.fnl diff --git a/nvim/.config/nvim/fnl/dotfiles/plugin/colorizer.fnl b/nvim/.config/nvim/fnl/dotfiles/plugin/colorizer.fnl new file mode 100644 index 0000000..f68db31 --- /dev/null +++ b/nvim/.config/nvim/fnl/dotfiles/plugin/colorizer.fnl @@ -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 + }) diff --git a/nvim/.config/nvim/fnl/dotfiles/plugin/lspconfig.fnl b/nvim/.config/nvim/fnl/dotfiles/plugin/lspconfig.fnl index 3b651a2..fece06a 100644 --- a/nvim/.config/nvim/fnl/dotfiles/plugin/lspconfig.fnl +++ b/nvim/.config/nvim/fnl/dotfiles/plugin/lspconfig.fnl @@ -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()" :ca "lua vim.lsp.buf.codeaction()" :sld "lua vim.lsp.diagnostic.show_line_diagnostics()" :rn "lua vim.lsp.buf.rename()" diff --git a/nvim/.config/nvim/fnl/dotfiles/plugin/treesitter.fnl b/nvim/.config/nvim/fnl/dotfiles/plugin/treesitter.fnl index 1fcb8df..1e46e5b 100644 --- a/nvim/.config/nvim/fnl/dotfiles/plugin/treesitter.fnl +++ b/nvim/.config/nvim/fnl/dotfiles/plugin/treesitter.fnl @@ -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 + } + }) diff --git a/nvim/.config/nvim/fnl/dotfiles/plugins.fnl b/nvim/.config/nvim/fnl/dotfiles/plugins.fnl index c15e8ed..9df125f 100644 --- a/nvim/.config/nvim/fnl/dotfiles/plugins.fnl +++ b/nvim/.config/nvim/fnl/dotfiles/plugins.fnl @@ -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