Updated some snippets and fixed feline

This commit is contained in:
2025-02-07 21:43:12 +11:00
parent 8bc6f4229f
commit 9b842d2baa
6 changed files with 88 additions and 11 deletions

View File

@@ -17,6 +17,7 @@ return {
json = { "prettierd", "prettier", stop_after_first = true },
html = { "prettierd", "prettier", stop_after_first = true },
css = { "prettierd", "prettier", stop_after_first = true },
templ = { "templ", stop_after_first = true },
},
-- Set default options
default_format_opts = {

View File

@@ -1,12 +1,12 @@
return {
'freddiehaddad/feline.nvim',
config = function ()
local ctp_feline = require('catppuccin.groups.integrations.feline')
"feline-nvim/feline.nvim",
config = function()
local ctp_feline = require("catppuccin.groups.integrations.feline")
ctp_feline.setup()
ctp_feline.setup()
require("feline").setup({
components = ctp_feline.get(),
})
end
require("feline").setup({
components = ctp_feline.get(),
})
end,
}

View File

@@ -31,6 +31,7 @@ return {
vim.lsp.protocol.make_client_capabilities(),
cmp_lsp.default_capabilities()
)
require("fidget").setup({})
require("mason").setup()
require("mason-lspconfig").setup({
@@ -40,13 +41,14 @@ return {
"bashls",
"css_variables",
"cssls",
"cssmodules_ls",
"docker_compose_language_service",
"dockerls",
"gopls",
"html",
"jsonls",
"pyright",
"tailwindcss",
"templ",
"ts_ls",
},
handlers = {
@@ -70,6 +72,26 @@ return {
},
})
end,
["templ"] = function()
local lspconfig = require("lspconfig")
lspconfig.templ.setup({
capabilities = capabilities,
})
end,
["html"] = function()
local lspconfig = require("lspconfig")
lspconfig.html.setup({
capabilities = capabilities,
})
end,
["tailwindcss"] = function()
local lspconfig = require("lspconfig")
lspconfig.tailwindcss.setup({
capabilities = capabilities,
})
end,
},
})

View File

@@ -18,7 +18,6 @@ return {
{ "<leader>o", group = "Open plugin", icon = { icon = "", color = "yellow" } },
{ "<leader>r", group = "Refactoring", mode = { "n", "x" } },
{ "<leader>v", group = "LSP Actions", icon = { icon = "󰅡" } },
{ "<leader>l", "<cmd>LspRestart<CR>", desc = "Restart LSP" },
{ "<leader><leader>", group = "Reload Plugins", icon = { icon = "" } },
{ "<leader><leader>w", "<cmd>Lazy reload which-key.nvim<CR>", desc = "Reload Which-key" },
@@ -26,10 +25,12 @@ return {
"<leader><leader>s",
"<cmd>source ~/.config/nvim/lua/haelnorr/snippets/lua.lua<CR>\
<cmd>source ~/.config/nvim/lua/haelnorr/snippets/go.lua<CR>\
<cmd>source ~/.config/nvim/lua/haelnorr/snippets/templ.lua<CR>\
<cmd>Lazy reload LuaSnip<CR>",
desc = "Reload LuaSnip",
},
{ "<leader><leader>l", "<cmd>Lazy reload nvim-lspconfig<CR>", desc = "Reload LSP" },
{ "<leader><leader>l", "<cmd>LspRestart<CR>", desc = "Restart LSP" },
{ "<leader><leader>c", "<cmd>Lazy reload conform.nvim<CR>", desc = "Reload Conform" },
-- Harpoon
-- Quick jumps and show list