From 555767ac220c2218a7b84bddf44f0911c7e043c5 Mon Sep 17 00:00:00 2001 From: sadanslargehole Date: Sat, 11 May 2024 14:08:38 -0400 Subject: [PATCH] things --- lua/plugins.lua | 3 +++ lua/setupformat.lua | 42 +++++++++++++++++++++++++++++++++++++++++ lua/setuplsp.lua | 4 ++++ lua/setuptreesitter.lua | 1 + 4 files changed, 50 insertions(+) diff --git a/lua/plugins.lua b/lua/plugins.lua index 392a464..c05746d 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -2,6 +2,9 @@ local plugins = { { "lambdalisue/suda.vim", }, + { + "windwp/nvim-ts-autotag" + }, { "iamcco/markdown-preview.nvim", cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" }, diff --git a/lua/setupformat.lua b/lua/setupformat.lua index e8389db..eacf1cd 100644 --- a/lua/setupformat.lua +++ b/lua/setupformat.lua @@ -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() diff --git a/lua/setuplsp.lua b/lua/setuplsp.lua index bdc95ca..6d4e0b8 100644 --- a/lua/setuplsp.lua +++ b/lua/setuplsp.lua @@ -8,6 +8,10 @@ capabilities.textDocument.foldingRange = { dynamicRegistration = false, lineFoldingOnly = true, } + +require("lspconfig").bashls.setup({ + capabilities = capabilities, +}) require("lspconfig").nil_ls.setup({ capabilities = capabilities, }) diff --git a/lua/setuptreesitter.lua b/lua/setuptreesitter.lua index 201bc1c..c1352fa 100644 --- a/lua/setuptreesitter.lua +++ b/lua/setuptreesitter.lua @@ -23,3 +23,4 @@ require("nvim-treesitter.configs").setup({ enable = true, }, }) +require('nvim-ts-autotag').setup()