.
This commit is contained in:
parent
16c7b23408
commit
12cf227133
12 changed files with 122 additions and 29 deletions
21
files/.config/nvim/lua/config/lsp.lua
Normal file
21
files/.config/nvim/lua/config/lsp.lua
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
vim.lsp.config('chicken', {
|
||||
cmd = {'chicken-lsp-server'},
|
||||
filetypes = {'scheme'},
|
||||
root_markers = {'Makefile', 'build.meson', '.git'},
|
||||
})
|
||||
vim.diagnostic.config({
|
||||
virtual_text = true,
|
||||
signs = true,
|
||||
underline = true,
|
||||
severity_sort = true,
|
||||
})
|
||||
vim.lsp.enable('chicken')
|
||||
-- requires clang-tools-extra
|
||||
vim.lsp.enable('clangd')
|
||||
-- requires lua-language-server
|
||||
vim.lsp.enable('lua_ls')
|
||||
-- requires rust-analyzer
|
||||
vim.lsp.enable('rust_analyzer')
|
||||
vim.keymap.set("n", "<leader>l", function()
|
||||
vim.lsp.buf.format({ async = true })
|
||||
end, { desc = "Format buffer" })
|
||||
Loading…
Add table
Add a link
Reference in a new issue