diff --git a/dot_config/nvim/lazy-lock.json b/dot_config/nvim/lazy-lock.json index 0585af9..6173948 100644 --- a/dot_config/nvim/lazy-lock.json +++ b/dot_config/nvim/lazy-lock.json @@ -1,7 +1,7 @@ { "Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" }, - "LuaSnip": { "branch": "master", "commit": "33b06d72d220aa56a7ce80a0dd6f06c70cd82b9d" }, - "barbar.nvim": { "branch": "master", "commit": "a26bae6c51899db530de19ce3c2f4307e37a869e" }, + "LuaSnip": { "branch": "master", "commit": "c9b9a22904c97d0eb69ccb9bab76037838326817" }, + "barbar.nvim": { "branch": "master", "commit": "40c176c9af7e9aefe3af9ec9d985a3edb50d66a3" }, "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, "cmp-cmdline": { "branch": "main", "commit": "d250c63aa13ead745e3a40f61fdd3470efde3923" }, "cmp-nvim-lsp": { "branch": "main", "commit": "99290b3ec1322070bcfb9e846450a46f6efa50f0" }, @@ -11,24 +11,24 @@ "dial.nvim": { "branch": "master", "commit": "46b4375e84e8eb771129bff6b2b1e47746601ef9" }, "falcon": { "branch": "master", "commit": "a7f5d325ebdad20c8b74ebe4f4fede8d451ac1dd" }, "fidget.nvim": { "branch": "main", "commit": "9238947645ce17d96f30842e61ba81147185b657" }, - "fzf-lua": { "branch": "main", "commit": "76e25abc4bbaab243b52fad7f7d4262e76254fd3" }, + "fzf-lua": { "branch": "main", "commit": "e1eab469be103bab47d8f1a925fd8712c3a91bbb" }, "gitsigns.nvim": { "branch": "main", "commit": "5f808b5e4fef30bd8aca1b803b4e555da07fc412" }, "harpoon": { "branch": "harpoon2", "commit": "a84ab829eaf3678b586609888ef52f7779102263" }, "hlchunk.nvim": { "branch": "main", "commit": "5465dd33ade8676d63f6e8493252283060cd72ca" }, - "lazy.nvim": { "branch": "main", "commit": "7e6c863bc7563efbdd757a310d17ebc95166cef3" }, + "lazy.nvim": { "branch": "main", "commit": "72aa3a2624be5dc240646084f7b6a38eb99eb2ce" }, "lexima.vim": { "branch": "master", "commit": "f851b232505766aff7bed7d20100ad31c9c0b33b" }, - "mason-lspconfig.nvim": { "branch": "main", "commit": "c6c686781f9841d855bf1b926e10aa5e19430a38" }, + "mason-lspconfig.nvim": { "branch": "main", "commit": "97d9f1d3ad205dece6bcafd1d71cf1507608f3c7" }, "mason-null-ls.nvim": { "branch": "main", "commit": "788499e735c6e71ba25c08e7df159e8dbf94c6ec" }, "mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" }, "memolist.vim": { "branch": "master", "commit": "8090f7a973f266a600c2ea84ec6941346414300a" }, "no-neck-pain.nvim": { "branch": "main", "commit": "5d91f31a2d583a367df97a4654be028fbe13f2d2" }, - "none-ls.nvim": { "branch": "main", "commit": "6f5473ae9e7feb0b40ca95b8ed92e85b42a3c71b" }, + "none-ls.nvim": { "branch": "main", "commit": "20f5650988cd849e18c7f3d2dce4b0e6a260e126" }, "nvim-cmp": { "branch": "main", "commit": "b555203ce4bd7ff6192e759af3362f9d217e8c89" }, - "nvim-lspconfig": { "branch": "master", "commit": "ff2b85abaa810f6611233dbe6d31c07510ebf43d" }, + "nvim-lspconfig": { "branch": "master", "commit": "87cdeb16895d64b306bfe9f440840ff55c2a76c0" }, "nvim-surround": { "branch": "main", "commit": "9f0cb495f25bff32c936062d85046fbda0c43517" }, "nvim-tree.lua": { "branch": "master", "commit": "68fc4c20f5803444277022c681785c5edd11916d" }, - "nvim-treesitter": { "branch": "master", "commit": "eb3e850acff4d9f2f2dd8dacd75353043c899753" }, - "nvim-web-devicons": { "branch": "master", "commit": "63f552a7f59badc6e6b6d22e603150f0d5abebb7" }, + "nvim-treesitter": { "branch": "master", "commit": "556ac68cd33973a38d3f2abac47f361432593fe2" }, + "nvim-web-devicons": { "branch": "master", "commit": "5740b7382429d20b6ed0bbdb0694185af9507d44" }, "obsidian.nvim": { "branch": "main", "commit": "14e0427bef6c55da0d63f9a313fd9941be3a2479" }, "plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" }, "slimline.nvim": { "branch": "main", "commit": "5a7e91619496c4655e02e7ba26aae6b9a5b5a564" }, diff --git a/dot_config/nvim/lua/plugins/nvim-treesitter.lua b/dot_config/nvim/lua/plugins/nvim-treesitter.lua index 6ea1303..189c4d6 100644 --- a/dot_config/nvim/lua/plugins/nvim-treesitter.lua +++ b/dot_config/nvim/lua/plugins/nvim-treesitter.lua @@ -1,44 +1,44 @@ return { - "nvim-treesitter/nvim-treesitter", - event = { "BufRead", "BufNewFile" }, - config = function() - require("nvim-treesitter.configs").setup({ - sync_install = false, + "nvim-treesitter/nvim-treesitter", + event = { "BufRead", "BufNewFile" }, + config = function() + require("nvim-treesitter.configs").setup({ + sync_install = false, - ignore_install = { - "markdown", - }, + ignore_install = { + "markdown", + }, - auto_install = true, - ensure_installed = { - "vimdoc", - "javascript", - "typescript", - "lua", - "go", - }, - highlight = { - enable = true, - }, - }) - -- REF: https://github.com/nvim-treesitter/nvim-treesitter/issues/2825#issuecomment-1547409415 - vim.api.nvim_create_autocmd({ - "BufEnter", - "BufWinEnter", - }, { - pattern = { "*.md" }, - callback = function() - vim.cmd("set conceallevel=0") - end, - }) - vim.api.nvim_create_autocmd({ - "BufLeave", - "BufWinLeave", - }, { - pattern = { "*.md" }, - callback = function() - vim.cmd("set conceallevel=3") - end, - }) - end, + auto_install = true, + ensure_installed = { + "vimdoc", + "javascript", + "typescript", + "lua", + "go", + }, + highlight = { + enable = true, + }, + }) + -- REF: https://github.com/nvim-treesitter/nvim-treesitter/issues/2825#issuecomment-1547409415 + vim.api.nvim_create_autocmd({ + "BufEnter", + "BufWinEnter", + }, { + pattern = { "*.md", "*.json" }, + callback = function() + vim.cmd("set conceallevel=0") + end, + }) + vim.api.nvim_create_autocmd({ + "BufLeave", + "BufWinLeave", + }, { + pattern = { "*.md" }, + callback = function() + vim.cmd("set conceallevel=3") + end, + }) + end, }