This commit is contained in:
kento2 2026-08-13 21:24:39 +02:00
parent 16c7b23408
commit 12cf227133
12 changed files with 122 additions and 29 deletions

View 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" })