nvim: added vls lsp

master
Jef Roosens 2022-04-26 09:00:56 +02:00
parent d912e6750a
commit b71acbc7ad
Signed by: Jef Roosens
GPG Key ID: B580B976584B5F30
4 changed files with 9 additions and 3 deletions

View File

@ -36,6 +36,11 @@ require'lspconfig'.hls.setup{
}
}
}
-- Pacman: vieter-vls (requires my Vieter repository)
-- GH: https://github.com/vlang/vls
require'lspconfig'.vls.setup {
cmd = {'vls'}
}
-- Pacman: rust-analyzer
-- GH: https://github.com/rust-analyzer/rust-analyzer
require'lspconfig'.rust_analyzer.setup{on_attach = on_attach}

View File

@ -11,7 +11,8 @@ g.NERDTreeIgnore = {
'^\\.stack-work$[[dir]]', '\\.lock$',
'^CMakeFiles$[[dir]]', '^CMakeCache.txt$[[file]]',
'.pdf$[[file]]',
'^node_modules$[[dir]]'
'^node_modules$[[dir]]',
'\\.o$'
}
g.NERDTreeShowHidden = 1

View File

@ -1,3 +1,3 @@
local g = vim.g
g.v_autofmt_bufwritepre = 1
g.v_autofmt_bufwritepre = 0

View File

@ -5,7 +5,7 @@ g.mapleader = " "
g.maplocalleader = "\\<tab>"
-- I often use non-standard shells that don't play nicely wiht certain features
o.shell = "/bin/bash"
-- o.shell = "/bin/bash"
-- Centers your cursor whenever possible
-- 999 is just a really large number (I think it's amount of lines or something)