1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
-- TODO enable with keybind
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"
-- TODO native cmp
--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
})
|