From 4441153d01ad8324b85f7b4f27b415054333b740 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Thu, 22 Feb 2024 21:01:21 +0100 Subject: [PATCH] My own changes --- init.lua | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 6f706be5..af7069b6 100644 --- a/init.lua +++ b/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