This commit is contained in:
sadanslargehole 2024-05-11 14:08:38 -04:00
parent 8b69dfe4bf
commit 555767ac22
No known key found for this signature in database
GPG key ID: B2E2F4A5161A7800
4 changed files with 50 additions and 0 deletions

View file

@ -2,6 +2,9 @@ local plugins = {
{
"lambdalisue/suda.vim",
},
{
"windwp/nvim-ts-autotag"
},
{
"iamcco/markdown-preview.nvim",
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },

View file

@ -69,6 +69,48 @@ require("formatter").setup({
try_node_modules = true,
}
end,
},
typescriptreact = {
require("formatter.filetypes.typescriptreact").eslint_d,
function()
return {
args = {
"--stdin",
"--fix-to-stdout",
},
exe = "eslint_d",
stdin = true,
try_node_modules = true,
}
end,
},
javascript = {
require("formatter.filetypes.javascript").eslint_d,
function ()
return {
args = {
"--stdin",
"--fix-to-stdout",
},
exe = "eslint_d",
stdin = true,
try_node_modules = true,
}
end
},
javascriptreact = {
require("formatter.filetypes.javascriptreact").eslint_d,
function ()
return {
args = {
"--stdin",
"--fix-to-stdout",
},
exe = "eslint_d",
stdin = true,
try_node_modules = true,
}
end
},
cpp = {
require("formatter.filetypes.c").clangformat,

View file

@ -8,6 +8,10 @@ capabilities.textDocument.foldingRange = {
dynamicRegistration = false,
lineFoldingOnly = true,
}
require("lspconfig").bashls.setup({
capabilities = capabilities,
})
require("lspconfig").nil_ls.setup({
capabilities = capabilities,
})

View file

@ -23,3 +23,4 @@ require("nvim-treesitter.configs").setup({
enable = true,
},
})
require('nvim-ts-autotag').setup()