From adf11320cbbf7751df240d67cbc294d2f5b836c2 Mon Sep 17 00:00:00 2001 From: jaredgoldman Date: Sun, 7 Apr 2024 17:51:48 -0400 Subject: [PATCH] feat: done --- init.lua | 3 ++- lazy-lock.json | 3 +++ lua/config/{pairs.lua => autopairs.lua} | 0 lua/config/autotags.lua | 18 ++++++++++++++++++ lua/plugins.lua | 1 + requirements.md | 4 ++-- 6 files changed, 26 insertions(+), 3 deletions(-) rename lua/config/{pairs.lua => autopairs.lua} (100%) create mode 100644 lua/config/autotags.lua diff --git a/init.lua b/init.lua index d71d184..f61d512 100644 --- a/init.lua +++ b/init.lua @@ -11,5 +11,6 @@ require("config.theme") require("config.lualine") require("config.fterm") require("config.harpoon") -require("config.pairs") +require("config.autopairs") +require("config.autotags") require("keymaps") diff --git a/lazy-lock.json b/lazy-lock.json index f4158f6..207940a 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -14,10 +14,13 @@ "mason-lspconfig.nvim": { "branch": "main", "commit": "44509689b9bf3984d729cc264aacb31cb7f41668" }, "mason.nvim": { "branch": "main", "commit": "751b1fcbf3d3b783fcf8d48865264a9bcd8f9b10" }, "monokai.nvim": { "branch": "master", "commit": "b8bd44d5796503173627d7a1fc51f77ec3a08a63" }, + "nvim-autopairs": { "branch": "master", "commit": "4f41e5940bc0443fdbe5f995e2a596847215cd2a" }, "nvim-cmp": { "branch": "main", "commit": "ce16de5665c766f39c271705b17fff06f7bcb84f" }, "nvim-comment": { "branch": "main", "commit": "e9ac16ab056695cad6461173693069ec070d2b23" }, "nvim-lspconfig": { "branch": "master", "commit": "9619e53d3f99f0ca4ea3b88f5d97fce703131820" }, "nvim-tree.lua": { "branch": "master", "commit": "81eb8d519233c105f30dc0a278607e62b20502fd" }, + "nvim-treesitter": { "branch": "master", "commit": "11a3584b81c3249d2b6279305aee1c7ad273985a" }, + "nvim-ts-autotag": { "branch": "main", "commit": "531f48334c422222aebc888fd36e7d109cb354cd" }, "nvim-web-devicons": { "branch": "master", "commit": "93ddac6966d5d3416f96df728d7b92e27aaa4452" }, "plenary.nvim": { "branch": "master", "commit": "8aad4396840be7fc42896e3011751b7609ca4119" }, "telescope.nvim": { "branch": "master", "commit": "6312868392331c9c0f22725041f1ec2bef57c751" }, diff --git a/lua/config/pairs.lua b/lua/config/autopairs.lua similarity index 100% rename from lua/config/pairs.lua rename to lua/config/autopairs.lua diff --git a/lua/config/autotags.lua b/lua/config/autotags.lua new file mode 100644 index 0000000..2119b60 --- /dev/null +++ b/lua/config/autotags.lua @@ -0,0 +1,18 @@ +require'nvim-treesitter.configs'.setup { + autotag = { + enable = true, + } +} + +-- Enable update on insert +vim.lsp.handlers['textDocument/publishDiagnostics'] = vim.lsp.with( + vim.lsp.diagnostic.on_publish_diagnostics, + { + underline = true, + virtual_text = { + spacing = 5, + severity_limit = 'Warning', + }, + update_in_insert = true, + } +) diff --git a/lua/plugins.lua b/lua/plugins.lua index 3a11f5c..7cf0af0 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -72,5 +72,6 @@ require("lazy").setup({ -- use opts = {} for passing setup options -- this is equalent to setup({}) function }, + 'windwp/nvim-ts-autotag', 'nvim-treesitter/nvim-treesitter' }) diff --git a/requirements.md b/requirements.md index 10efeb4..70e8965 100644 --- a/requirements.md +++ b/requirements.md @@ -8,5 +8,5 @@ - terminal x - harpoon x - extended history x -- auto-pairs -- lua vim linting +- auto-pairs x +- lua vim linting x