This commit is contained in:
2025-06-10 13:27:05 -05:00
parent 8ee847db45
commit 39e6719d12
4 changed files with 148 additions and 145 deletions

View File

@@ -12,7 +12,7 @@ return {
typescriptreact = { "prettier" },
svelte = { "prettier" },
css = { "prettier" },
html = { "prettier" },
html = { "prettier", "djlint" },
json = { "prettier" },
yaml = { "prettier" },
markdown = { "prettier" },

View File

@@ -49,6 +49,7 @@ return {
"pylint", -- python linter
"eslint_d", -- js linter
"django-template-lsp",
"djlint",
},
})
end,

View File

@@ -35,8 +35,8 @@ return {
end,
},
mapping = cmp.mapping.preset.insert({
["<C-k>"] = cmp.mapping.select_prev_item(), -- previous suggestion
["<C-j>"] = cmp.mapping.select_next_item(), -- next suggestion
["<S-Tab>"] = cmp.mapping.select_prev_item(), -- previous suggestion
["<Tab>"] = cmp.mapping.select_next_item(), -- next suggestion
["<C-b>"] = cmp.mapping.scroll_docs(-4),
["<C-f>"] = cmp.mapping.scroll_docs(4),
["<C-Space>"] = cmp.mapping.complete(), -- show completion suggestions
@@ -45,7 +45,7 @@ return {
}),
-- sources for autocompletion
sources = cmp.config.sources({
{ name = "nvim_lsp"},
{ name = "nvim_lsp" },
{ name = "luasnip" }, -- snippets
{ name = "buffer" }, -- text within current buffer
{ name = "path" }, -- file system paths

View File

@@ -28,12 +28,14 @@ return {
"tsx",
"yaml",
"html",
"htmldjango",
"php",
"css",
"prisma",
"markdown",
"markdown_inline",
"python",
"svelte",
"graphql",
"bash",
"lua",
"vim",