feat: add svelte lsp server
This commit is contained in:
parent
3532a4fe54
commit
340d849be1
10
init.lua
10
init.lua
@ -101,7 +101,7 @@ vim.g.mapleader = ' '
|
|||||||
vim.g.maplocalleader = ' '
|
vim.g.maplocalleader = ' '
|
||||||
|
|
||||||
-- Set to true if you have a Nerd Font installed and selected in the terminal
|
-- Set to true if you have a Nerd Font installed and selected in the terminal
|
||||||
vim.g.have_nerd_font = false
|
vim.g.have_nerd_font = true
|
||||||
|
|
||||||
-- [[ Setting options ]]
|
-- [[ Setting options ]]
|
||||||
-- See `:help vim.opt`
|
-- See `:help vim.opt`
|
||||||
@ -171,6 +171,8 @@ vim.opt.scrolloff = 10
|
|||||||
-- See `:help 'confirm'`
|
-- See `:help 'confirm'`
|
||||||
vim.opt.confirm = true
|
vim.opt.confirm = true
|
||||||
|
|
||||||
|
vim.opt.tabstop = 2
|
||||||
|
|
||||||
-- [[ Basic Keymaps ]]
|
-- [[ Basic Keymaps ]]
|
||||||
-- See `:help vim.keymap.set()`
|
-- See `:help vim.keymap.set()`
|
||||||
|
|
||||||
@ -708,6 +710,12 @@ require('lazy').setup({
|
|||||||
-- clangd = {},
|
-- clangd = {},
|
||||||
-- gopls = {},
|
-- gopls = {},
|
||||||
-- pyright = {},
|
-- pyright = {},
|
||||||
|
svelte = {
|
||||||
|
cmd = { 'svelteserver', '--stdio' },
|
||||||
|
filetypes = { 'svelte' },
|
||||||
|
root_dir = require('lspconfig').util.root_pattern('package.json', 'svelte.config.js'),
|
||||||
|
settings = {},
|
||||||
|
},
|
||||||
rust_analyzer = {
|
rust_analyzer = {
|
||||||
settings = {
|
settings = {
|
||||||
['rust-analyzer'] = {
|
['rust-analyzer'] = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user