17 lines
413 B
Lua
17 lines
413 B
Lua
|
local lsp = require('lsp-zero').preset({})
|
||
|
|
||
|
vim.diagnostic.config({
|
||
|
virtual_text = true
|
||
|
})
|
||
|
|
||
|
lsp.on_attach(function(client, bufnr)
|
||
|
lsp.default_keymaps({buffer = bufnr})
|
||
|
-- set tagfunc to empty to use default tag jumpingn behaviour withouth going through the lsp
|
||
|
vim.opt.tagfunc = ""
|
||
|
end)
|
||
|
|
||
|
-- (Optional) Configure lua language server for neovim
|
||
|
require('lspconfig').lua_ls.setup(lsp.nvim_lua_ls())
|
||
|
|
||
|
lsp.setup()
|