From d0738bbf71b41b9394846cf9de96bbceeda7eebd Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Tue, 21 Oct 2025 20:26:16 +0200 Subject: feat: big refactor. --- lua/plugins/lsp.lua | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) (limited to 'lua/plugins/lsp.lua') diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index cfa3ff9..7145821 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -1,7 +1,32 @@ +-- Enable some settings globally +vim.lsp.config("*", { + -- allow for multiline token support + capabilities = { + textDocument = { + semanticTokens = { + multilineTokenSupport = true, + } + } + }, + -- make .git always be a root marker + root_markers = { '.git' }, + -- setup autocompletion + -- on_attach = function(client, bufnr) + -- vim.lsp.completion.enable(true, client.id, bufnr, { + -- autotrigger = true, + -- convert = function(item) + -- return { abbr = item.label:gsub('%b()', '') } + -- end, + -- }) + -- end, +}) + +-- enable specific language servers vim.lsp.enable({ "nixd", "lua_ls", + "jsonls", }) --- fix stupid lua error with neovim -require("lazydev").setup() +-- diagnostic settings +vim.diagnostic.config({ virtual_text = true }) -- cgit v1.1