Bohdan's terminal configuration

neovim: Svelte support

bpavuk.neocities.org 96f32b14 500d0c3d

verified
Changed files
+19
nvim
.config
nvim
lua
configs
+19
nvim/.config/nvim/lua/configs/lspconfig.lua
··· 9 9 "slint_lsp", 10 10 "pyright", 11 11 "glsl_analyzer", 12 + "svelte", 12 13 } 13 14 vim.lsp.enable(servers) 14 15 ··· 34 35 }, 35 36 }, 36 37 }) 38 + 39 + vim.lsp.config('svelte', { 40 + filetypes = { "svelte" }, 41 + root_dir = function(...) 42 + return require("lspconfig.util") 43 + .root_pattern("svelte.config.js")(...) 44 + end, 45 + settings = { 46 + svelte = { 47 + plugin = { 48 + svelte = { 49 + defaultScriptLanguage = "ts", 50 + }, 51 + }, 52 + }, 53 + }, 54 + }); 55 +