Add Neovim LSP for Yaml files
This commit is contained in:
parent
2dae9f5813
commit
d7f83654e8
|
@ -203,16 +203,12 @@ in {
|
||||||
|
|
||||||
# TODO: Check out these plugins as additions / replacements:
|
# TODO: Check out these plugins as additions / replacements:
|
||||||
|
|
||||||
# - https://github.com/weilbith/nvim-code-action-menu/ Check with phpactor and lsp
|
|
||||||
# - https://github.com/anuvyklack/pretty-fold.nvim Allows easily cosumization of folds
|
|
||||||
# - https://github.com/glacambre/firenvim Give it another try, integrates neovim into firefox
|
# - https://github.com/glacambre/firenvim Give it another try, integrates neovim into firefox
|
||||||
# - https://github.com/kristijanhusak/vim-dadbod-ui Use vim as db browser
|
# - https://github.com/kristijanhusak/vim-dadbod-ui Use vim as db browser
|
||||||
#
|
|
||||||
# - https://github.com/b0o/SchemaStore.nvim/ autointegrate schemas for json/yaml
|
|
||||||
#
|
|
||||||
# - https://github.com/lambdalisue/vim-pager/ (try once I use neovim as pager again)
|
# - https://github.com/lambdalisue/vim-pager/ (try once I use neovim as pager again)
|
||||||
#
|
|
||||||
# - https://github.com/hrsh7th/nvim-cmp (due to actual help of each parameter while adding values to function call)
|
# - https://github.com/hrsh7th/nvim-cmp (due to actual help of each parameter while adding values to function call)
|
||||||
|
|
||||||
|
# - https://github.com/weilbith/nvim-code-action-menu/ Check again in future, right now not of much useness on my setup.
|
||||||
#
|
#
|
||||||
# Related to diffs / merging
|
# Related to diffs / merging
|
||||||
#
|
#
|
||||||
|
@ -324,19 +320,32 @@ in {
|
||||||
plugin = nvim-lspconfig;
|
plugin = nvim-lspconfig;
|
||||||
type = "lua";
|
type = "lua";
|
||||||
config = ''
|
config = ''
|
||||||
require'lspconfig'.phpactor.setup({
|
require('lspconfig').phpactor.setup({
|
||||||
cmd = {
|
cmd = {
|
||||||
'${pkgs.php80}/bin/php',
|
'${pkgs.php80}/bin/php',
|
||||||
'${phpactor}/bin/phpactor',
|
'${phpactor}/bin/phpactor',
|
||||||
'language-server',
|
'language-server',
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
require'lspconfig'.vimls.setup({
|
require('lspconfig').vimls.setup({
|
||||||
cmd = {
|
cmd = {
|
||||||
'${pkgs.nodePackages.vim-language-server}/bin/vim-language-server',
|
'${pkgs.nodePackages.vim-language-server}/bin/vim-language-server',
|
||||||
'--stdio',
|
'--stdio',
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
require('lspconfig').yamlls.setup({
|
||||||
|
cmd = {
|
||||||
|
'${pkgs.nodePackages.yaml-language-server}/bin/yaml-language-server',
|
||||||
|
'--stdio',
|
||||||
|
},
|
||||||
|
settings = {
|
||||||
|
yaml = {
|
||||||
|
schemaStore = {
|
||||||
|
enable = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,3 +3,5 @@ setlocal softtabstop=2 " edit as if the tabs are 2 characters wide
|
||||||
setlocal shiftwidth=2 " number of spaces to use for indent and unindent
|
setlocal shiftwidth=2 " number of spaces to use for indent and unindent
|
||||||
|
|
||||||
setlocal nospell
|
setlocal nospell
|
||||||
|
|
||||||
|
setlocal omnifunc=v:lua.vim.lsp.omnifunc
|
||||||
|
|
Loading…
Reference in a new issue