My own changes
This commit is contained in:
parent
e9f8139fcf
commit
4441153d01
25
init.lua
25
init.lua
@ -131,6 +131,8 @@ vim.api.nvim_create_autocmd('TextYankPost', {
|
||||
end,
|
||||
})
|
||||
|
||||
vim.filetype.add { extension = { templ = 'templ' } }
|
||||
|
||||
-- [[ Install `lazy.nvim` plugin manager ]]
|
||||
-- See `:help lazy.nvim.txt` or https://github.com/folke/lazy.nvim for more info
|
||||
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
|
||||
@ -443,11 +445,25 @@ require('lazy').setup({
|
||||
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
|
||||
local servers = {
|
||||
-- clangd = {},
|
||||
-- gopls = {},
|
||||
-- pyright = {},
|
||||
gopls = {},
|
||||
pyright = {},
|
||||
-- rust_analyzer = {},
|
||||
-- tsserver = {},
|
||||
-- html = { filetypes = { 'html', 'twig', 'hbs'} },
|
||||
html = {
|
||||
filetypes = { 'html', 'templ' },
|
||||
},
|
||||
htmx = {
|
||||
filetypes = { 'html', 'templ' },
|
||||
},
|
||||
tailwindcss = {
|
||||
filetypes = { 'html', 'templ' },
|
||||
init_options = {
|
||||
includeLanguages = { templ = 'html' },
|
||||
userLanguages = { templ = 'html' },
|
||||
},
|
||||
},
|
||||
volar = {},
|
||||
|
||||
lua_ls = {
|
||||
-- cmd = {...},
|
||||
@ -462,6 +478,11 @@ require('lazy').setup({
|
||||
},
|
||||
},
|
||||
},
|
||||
yamlls = {
|
||||
yaml = {
|
||||
keyOrdering = false,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
-- Ensure the servers above are installed
|
||||
|
Loading…
x
Reference in New Issue
Block a user