Neovim LSP stuff

This commit is contained in:
2025-06-09 09:24:30 +03:00
parent 054f906de3
commit d259a6fd55
11 changed files with 23 additions and 15 deletions

View File

@ -1,4 +1,4 @@
vim.lsp.config('harper_ls', {
return {
settings = { -- https://writewithharper.com/docs/integrations/neovim
["harper-ls"] = {
isolateEnglish = true, -- highly experimental
@ -16,4 +16,4 @@ vim.lsp.config('harper_ls', {
-- }
}
},
})
}

View File

@ -1,7 +1,7 @@
vim.lsp.config('lua_ls', {
return {
settings = {
Lua = {
diagnostics = { globals = { "vim" } }
}
}
})
}

View File

@ -0,0 +1,8 @@
return {
-- settings = {
-- language_server_php_cs_fixer = {
-- enabled = true,
-- bin = "~/.local/share/nvim/mason/bin/php-cs-fixer",
-- }
-- }
}

View File

@ -1,4 +1,4 @@
vim.lsp.config('rust_analyzer', {
return {
settings = {
["rust-analyzer"] = {
cargo = {
@ -39,4 +39,4 @@ vim.lsp.config('rust_analyzer', {
},
},
}
})
}

View File

@ -1,5 +1,5 @@
-- https://myriad-dreamin.github.io/tinymist//frontend/neovim.html
vim.lsp.config('tinymist', {
return {
settings = {
formatterPrintWidth = 100, -- can't stand 120
formatterMode = "typstyle", -- or typstfmt
@ -10,4 +10,4 @@ vim.lsp.config('tinymist', {
root_dir = function(bufnr, callback)
callback(vim.fs.root(bufnr, { ".git" }) or vim.fn.expand "%:p:h")
end,
})
}

View File

@ -1,8 +1,8 @@
vim.lsp.config('yamlls', {
return {
settings = {
yaml = {
format = { enable = true },
schemaStore = { enable = true },
}
}
})
}

View File

@ -25,7 +25,7 @@ o.mouse = "a"
o.spell = false
o.spelllang = "en_us,uk"
o.spelloptions = "camel"
-- o.fileencodings = "utf-8,cp1251,cp866"
o.fileencodings = "ucs-bom,utf-8,default,cp1251"
--o.clipboard = "unnamed"plus?
o.iskeyword:append "-" -- is part of the word
o.formatoptions:append "n" -- indents for numbered lists