summaryrefslogtreecommitdiff
path: root/neovim/.config
diff options
context:
space:
mode:
Diffstat (limited to 'neovim/.config')
-rw-r--r--neovim/.config/nvim/init.vim10
1 files changed, 7 insertions, 3 deletions
diff --git a/neovim/.config/nvim/init.vim b/neovim/.config/nvim/init.vim
index c202106..9a7946e 100644
--- a/neovim/.config/nvim/init.vim
+++ b/neovim/.config/nvim/init.vim
@@ -39,6 +39,8 @@ Plug 'ntpeters/vim-better-whitespace'
" Nice support for latex files
Plug 'lervag/vimtex'
+" Nice support for rST files
+Plug 'habamax/vim-rst'
" Override configs by directory
Plug 'arielrossanigo/dir-configs-override.vim'
@@ -146,6 +148,8 @@ Plug 'ryanoasis/vim-devicons'
call plug#end()
lua << EOF
+require('trouble').setup()
+
require('symbols-outline').setup({
-- Override the weird Class & Struct icons, which usually resolve to a
-- "mathcal"-Style letter
@@ -257,7 +261,7 @@ end
-- Use a loop to conveniently call 'setup' on multiple servers and
-- map buffer local keybindings when the language server attaches
-local servers = { 'clangd', 'hls', 'rust_analyzer', 'texlab', 'jedi_language_server', 'tsserver' }
+local servers = { 'clangd', 'hls', 'rust_analyzer', 'texlab', 'jedi_language_server', 'ts_ls' }
for _, lsp in ipairs(servers) do
local config = {
on_attach = on_attach,
@@ -281,8 +285,8 @@ EOF
nmap <F2> :TagbarToggle<CR>
nmap <silent><space>s :SymbolsOutline<CR>
nmap <F4> :SymbolsOutline<CR>
-nmap <F5> :TroubleToggle workspace_diagnostics<CR>
-nmap <F6> :TroubleToggle document_diagnostics<CR>
+nmap <F5> :Trouble diagnostics toggle<CR>
+nmap <F6> :Trouble diagnostics toggle filter.buf=0<CR>
function! LspStatus() abort
return trim(luaeval("require('lsp-status').status()"))