Show references

This commit is contained in:
Thomas Avé 2022-07-03 14:59:11 +02:00
parent 99c77a446a
commit fffa800f00
2 changed files with 6 additions and 4 deletions

View File

@ -79,6 +79,7 @@ set wildmode=longest,list
:command Q q
:command WQ wq
:command Wq wq
:imap jj <Esc>
nnoremap j gj
nnoremap k gk
vnoremap u y
@ -136,10 +137,11 @@ let g:SuperTabContextDefaultCompletionType = "<c-n>"
let g:SuperTabDefaultCompletionType = "<c-n>"
" Lanuage server
nnoremap <silent> <buffer> gd :lua vim.lsp.buf.definition()<CR>
set updatetime=300
set signcolumn=number
nmap <silent> <leader>n :lua vim.lsp.diagnostic.goto_next()<CR>
nmap <silent> <leader>p :lua vim.lsp.diagnostic.goto_prev()<CR>
nmap <silent> <leader>n :lua vim.diagnostic.goto_next()<CR>
nmap <silent> <leader>p :lua vim.diagnostic.goto_prev()<CR>
nmap <silent> <leader>f :lua vim.lsp.buf.code_action()<CR>
nnoremap <silent> gd :lua vim.lsp.buf.definition()<CR>
nnoremap <silent> gr :lua vim.lsp.buf.references()<CR>

View File

@ -122,7 +122,7 @@ require('lspconfig').ltex.setup {
end,
settings = {
ltex = {
enabled = {"latex", "tex", "bib", "md"},
enabled = {"latex", "tex", "bib", "md", "text"},
language="en-GB",
}
}