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})
|
2024-08-29 01:28:01 +00:00
|
|
|
local bufopts = { noremap = true, silent = true, buffer = bufnr }
|
|
|
|
vim.keymap.set("n", "<leader>rn", vim.lsp.buf.rename, bufopts)
|
2024-01-31 04:13:47 +00:00
|
|
|
end)
|
|
|
|
|
|
|
|
local lsp_config = require('lspconfig')
|
|
|
|
lsp_config.lua_ls.setup(lsp.nvim_lua_ls())
|
|
|
|
|
|
|
|
lsp.setup()
|
|
|
|
|