From b289c88c8af8f35faf16ccc4fbb0af7798d2316a Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Thu, 21 May 2026 22:43:45 -0500 Subject: get rid of lazy.nvim in favor of natively installed packages. some general refactoring --- lua/tjk/lsp.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 lua/tjk/lsp.lua (limited to 'lua/tjk/lsp.lua') diff --git a/lua/tjk/lsp.lua b/lua/tjk/lsp.lua new file mode 100644 index 0000000..396b643 --- /dev/null +++ b/lua/tjk/lsp.lua @@ -0,0 +1,24 @@ +vim.lsp.enable({ + "cssls", + "eslint", + "html", + "jinja_lsp", + "jsonls", + "pylsp", + "somesass_ls", + "svelte", + "tailwindcss", + "ts_ls" +}) + +vim.api.nvim_create_autocmd("LspAttach", { + callback = function(args) + vim.o.signcolumn = "yes:1" + local client = assert(vim.lsp.get_client_by_id(args.data.client_id)) + if client:supports_method("textDocument/completion") then + vim.o.complete = { "o", ".", "w", "b", "u" } + vim.o.completeopt = { "menu", "menuone", "popup", "noinsert" } + vim.lsp.completion.enable(true, client.id, args.buf) + end + end +}) -- cgit v1.2.3