diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2026-05-21 22:43:45 -0500 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2026-05-21 22:44:06 -0500 |
| commit | b289c88c8af8f35faf16ccc4fbb0af7798d2316a (patch) | |
| tree | da9908ca8312cce48863ecd33d8e3e09a64efc5c /lua/tjk/lsp.lua | |
| parent | a1991e505485abe9425560714d45b1fe1b2a7cfe (diff) | |
| download | nvim-b289c88c8af8f35faf16ccc4fbb0af7798d2316a.tar.xz nvim-b289c88c8af8f35faf16ccc4fbb0af7798d2316a.zip | |
get rid of lazy.nvim in favor of natively installed packages. some general refactoring
Diffstat (limited to 'lua/tjk/lsp.lua')
| -rw-r--r-- | lua/tjk/lsp.lua | 24 |
1 files changed, 24 insertions, 0 deletions
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 +}) |
