mirror of
https://github.com/sadan4/nvim.git
synced 2024-11-16 22:34:39 -05:00
things
This commit is contained in:
parent
8b69dfe4bf
commit
555767ac22
4 changed files with 50 additions and 0 deletions
|
@ -2,6 +2,9 @@ local plugins = {
|
|||
{
|
||||
"lambdalisue/suda.vim",
|
||||
},
|
||||
{
|
||||
"windwp/nvim-ts-autotag"
|
||||
},
|
||||
{
|
||||
"iamcco/markdown-preview.nvim",
|
||||
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
|
||||
|
|
|
@ -70,6 +70,48 @@ require("formatter").setup({
|
|||
}
|
||||
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,
|
||||
function()
|
||||
|
|
|
@ -8,6 +8,10 @@ capabilities.textDocument.foldingRange = {
|
|||
dynamicRegistration = false,
|
||||
lineFoldingOnly = true,
|
||||
}
|
||||
|
||||
require("lspconfig").bashls.setup({
|
||||
capabilities = capabilities,
|
||||
})
|
||||
require("lspconfig").nil_ls.setup({
|
||||
capabilities = capabilities,
|
||||
})
|
||||
|
|
|
@ -23,3 +23,4 @@ require("nvim-treesitter.configs").setup({
|
|||
enable = true,
|
||||
},
|
||||
})
|
||||
require('nvim-ts-autotag').setup()
|
||||
|
|
Loading…
Reference in a new issue