Folding kinda annoying on smaller projects ie. AoC. Add lsp for wgsl and glsl
This commit is contained in:
parent
a56b8f7029
commit
4c81d0b05b
10
init.lua
10
init.lua
@ -42,10 +42,10 @@ vim.opt.expandtab = false
|
||||
vim.opt.autoindent = true
|
||||
vim.opt.smartindent = true
|
||||
vim.opt.completeopt = { "menu", "menuone", "noselect" }
|
||||
vim.opt.foldmethod = "expr"
|
||||
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
|
||||
vim.opt.foldtext = ""
|
||||
vim.opt.foldlevelstart = 1
|
||||
vim.opt.foldnestmax = 2
|
||||
--vim.opt.foldmethod = "expr"
|
||||
--vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
|
||||
--vim.opt.foldtext = ""
|
||||
--vim.opt.foldlevelstart = 1
|
||||
--vim.opt.foldnestmax = 2
|
||||
|
||||
-- TODO replace config with opts in every plugin
|
||||
|
@ -119,6 +119,14 @@ return {
|
||||
capabilities = capabilities,
|
||||
on_attach = lsp_attach
|
||||
})
|
||||
lspconfig.wgsl_analyzer.setup({
|
||||
capabilities = capabilities,
|
||||
on_attach = lsp_attach
|
||||
})
|
||||
lspconfig.glsl_analyzer.setup({
|
||||
capabilities = capabilities,
|
||||
on_attach = lsp_attach
|
||||
})
|
||||
capabilities.textDocument.completion.completionItem.snippetSupport = true
|
||||
lspconfig.emmet_ls.setup({
|
||||
capabilities = capabilities,
|
||||
@ -142,7 +150,6 @@ return {
|
||||
extraArgs = { "+nightly" },
|
||||
},
|
||||
cargo = {
|
||||
allFeatures = true,
|
||||
loadOutDirsFromCheck = true,
|
||||
runBuildScripts = true,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user