summaryrefslogtreecommitdiff
path: root/neovim
diff options
context:
space:
mode:
authorMike Vink <mike1994vink@gmail.com>2022-11-16 12:36:18 +0100
committerMike Vink <mike1994vink@gmail.com>2022-11-16 12:36:18 +0100
commit0bc56a03db2b198e0426ad38f71a0d70c66d44db (patch)
treebec7a4a93cd53816f6628818302d3e557be43b97 /neovim
parente4feed89e6f15bcaaa6cefc8ca79d482accbb300 (diff)
racket and conjure stuff
Diffstat (limited to 'neovim')
-rw-r--r--neovim/init.lua4
-rw-r--r--neovim/lua/vimrc.lua11
-rw-r--r--neovim/lua/vimrc/lsp.lua2
3 files changed, 16 insertions, 1 deletions
diff --git a/neovim/init.lua b/neovim/init.lua
index b51f723..2ecb90a 100644
--- a/neovim/init.lua
+++ b/neovim/init.lua
@@ -95,8 +95,12 @@ vim.opt.diffopt:append("vertical")
vim.opt.shortmess:append("c")
-- }}}
+
-- load global and utility functions
+local racket_lang = vim.g.racket_hash_lang_dict
+racket_lang.sicp = "racket"
+vim.g.racket_hash_lang_dict = racket_lang
vim.api.nvim_set_keymap("n", "g<space>", ":TestNearest<cr>", {})
-- TODO: debug test
-- vim.api.nvim_set_keymap("n", "g<cr>", ":TestNearest<cr>", {})
diff --git a/neovim/lua/vimrc.lua b/neovim/lua/vimrc.lua
index 817ec92..3a90ad9 100644
--- a/neovim/lua/vimrc.lua
+++ b/neovim/lua/vimrc.lua
@@ -60,11 +60,20 @@ function M.setup_treesitter()
-- Using this option may slow down your editor, and you may see some duplicate highlights.
-- Instead of true it can also be a list of languages
},
+ rainbow = {
+ enable = true,
+ -- disable = { "jsx", "cpp" }, list of languages you want to disable the plugin for
+ extended_mode = true, -- Also highlight non-bracket delimiters like html tags, boolean or table: lang -> boolean
+ max_file_lines = nil, -- Do not enable for files with more than n lines, int
+ -- colors = {}, -- table of hex strings
+ -- termcolors = {} -- table of colour name strings
+ },
+
incremental_selection = {
enable = true,
},
indent = {
- enable = true,
+ enable = false,
disable = { "python", "yaml" },
},
}
diff --git a/neovim/lua/vimrc/lsp.lua b/neovim/lua/vimrc/lsp.lua
index b930bfa..bd3b206 100644
--- a/neovim/lua/vimrc/lsp.lua
+++ b/neovim/lua/vimrc/lsp.lua
@@ -205,6 +205,8 @@ function M.setup()
null_ls.builtins.formatting.alejandra,
-- python formatter: black
null_ls.builtins.formatting.black,
+ -- lisp formatter
+ null_ls.builtins.formatting.raco_fmt
}
})
end