Neovim-Config/after/plugin/lsp-zero.lua

15 lines
276 B
Lua
Raw Normal View History

2024-01-31 04:13:47 +00:00
vim.filetype.add({ extension = { templ = "templ" } })
local lsp = require('lsp-zero').preset({})
lsp.on_attach(function(_, bufnr)
lsp.default_keymaps({buffer = bufnr})
end)
local lsp_config = require('lspconfig')
lsp_config.lua_ls.setup(lsp.nvim_lua_ls())
lsp.setup()