Neovim LSP stuff
This commit is contained in:
@ -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', {
|
||||
-- }
|
||||
}
|
||||
},
|
||||
})
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
vim.lsp.config('lua_ls', {
|
||||
return {
|
||||
settings = {
|
||||
Lua = {
|
||||
diagnostics = { globals = { "vim" } }
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
8
.config/nvim/after/lsp/phpactor.lua
Normal file
8
.config/nvim/after/lsp/phpactor.lua
Normal file
@ -0,0 +1,8 @@
|
||||
return {
|
||||
-- settings = {
|
||||
-- language_server_php_cs_fixer = {
|
||||
-- enabled = true,
|
||||
-- bin = "~/.local/share/nvim/mason/bin/php-cs-fixer",
|
||||
-- }
|
||||
-- }
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
vim.lsp.config('rust_analyzer', {
|
||||
return {
|
||||
settings = {
|
||||
["rust-analyzer"] = {
|
||||
cargo = {
|
||||
@ -39,4 +39,4 @@ vim.lsp.config('rust_analyzer', {
|
||||
},
|
||||
},
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -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,
|
||||
})
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
vim.lsp.config('yamlls', {
|
||||
return {
|
||||
settings = {
|
||||
yaml = {
|
||||
format = { enable = true },
|
||||
schemaStore = { enable = true },
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user