You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
535 B
22 lines
535 B
-- Learn the keybindings, see :help lsp-zero-keybindings
|
|
-- Learn to configure LSP servers, see :help lsp-zero-api-showcase
|
|
local lsp = require('lsp-zero')
|
|
lsp.preset('recommended')
|
|
|
|
-- (Optional) Configure lua language server for neovim
|
|
lsp.nvim_workspace()
|
|
|
|
lsp.ensure_installed({
|
|
'tailwindcss',
|
|
'tsserver',
|
|
'texlab',
|
|
'pyright',
|
|
'sumneko_lua'
|
|
})
|
|
|
|
lsp.on_attach(function(client, bufnr)
|
|
local opts = {buffer = bufnr, remap=false}
|
|
vim.keymap.set("n", "gd", function() vim.lsp.buf.definition() end, opts)
|
|
end)
|
|
|
|
lsp.setup()
|