Neovim configs for 2023. Hopefully they last.
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

2 years ago
2 years ago
2 years ago
  1. -- Learn the keybindings, see :help lsp-zero-keybindings
  2. -- Learn to configure LSP servers, see :help lsp-zero-api-showcase
  3. local lsp = require('lsp-zero')
  4. lsp.preset('recommended')
  5. -- (Optional) Configure lua language server for neovim
  6. lsp.nvim_workspace()
  7. lsp.ensure_installed({
  8. 'tailwindcss',
  9. 'tsserver',
  10. 'texlab',
  11. 'pyright',
  12. 'sumneko_lua'
  13. })
  14. lsp.on_attach(function(client, bufnr)
  15. local opts = {buffer = bufnr, remap=false}
  16. vim.keymap.set("n", "gd", function() vim.lsp.buf.definition() end, opts)
  17. end)
  18. lsp.setup()