VIM: Fixes lsp config

master
Jonathan Hodgson 3 years ago
parent 9255032a61
commit 5f35102a96
  1. 15
      nvim/.config/nvim/after/plugin/lsp.vim

@ -3,18 +3,21 @@ if !has('nvim')
finish finish
endif endif
lua <<EOF lua <<EOF
if ( vim.lsp == nil ) then
vim.api.nvim_command("finish")
end
-- Bash Language Server -- Bash Language Server
require'nvim_lsp'.bashls.setup{} require'lspconfig'.bashls.setup{}
-- Clang Language Server -- Clang Language Server
require'nvim_lsp'.clangd.setup{} require'lspconfig'.clangd.setup{}
-- Go Language Server -- Go Language Server
require'nvim_lsp'.gopls.setup{} require'lspconfig'.gopls.setup{}
-- Python Language Server -- Python Language Server
require'nvim_lsp'.pyls.setup{} --require'lspconfig'.pyls.setup{}
-- Vim Language Server -- Vim Language Server
require'nvim_lsp'.vimls.setup{} require'lspconfig'.vimls.setup{}
-- VUE Language Server -- VUE Language Server
require'nvim_lsp'.vuels.setup{} require'lspconfig'.vuels.setup{}
EOF EOF
function! s:ConfigureBuffer() function! s:ConfigureBuffer()
nnoremap <buffer> <silent> <c-]> <cmd>lua vim.lsp.buf.definition()<CR> nnoremap <buffer> <silent> <c-]> <cmd>lua vim.lsp.buf.definition()<CR>

Loading…
Cancel
Save