diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json index 424289f..c31646e 100644 --- a/.config/nvim/lazy-lock.json +++ b/.config/nvim/lazy-lock.json @@ -9,7 +9,7 @@ "mason-lspconfig.nvim": { "branch": "main", "commit": "e942edf5c85b6a2ab74059ea566cac5b3e1514a4" }, "mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" }, "mini.icons": { "branch": "main", "commit": "1c79feb7478ca773fa3dac5cadf43ced9180e861" }, - "nordic.nvim": { "branch": "main", "commit": "78387ba46fe72c7f137b4efdafd424dea526d52c" }, + "nord.nvim": { "branch": "master", "commit": "80c1e5321505aeb22b7a9f23eb82f1e193c12470" }, "nvim-cmp": { "branch": "main", "commit": "8c82d0bd31299dbff7f8e780f5e06d2283de9678" }, "nvim-lspconfig": { "branch": "master", "commit": "339ccc81e08793c3af9b83882a6ebd90c9cc0d3b" }, "nvim-surround": { "branch": "main", "commit": "9f0cb495f25bff32c936062d85046fbda0c43517" }, diff --git a/.config/nvim/lua/plugins/nvim-treesitter.lua b/.config/nvim/lua/plugins/nvim-treesitter.lua new file mode 100644 index 0000000..648b3f2 --- /dev/null +++ b/.config/nvim/lua/plugins/nvim-treesitter.lua @@ -0,0 +1,13 @@ +return { + 'nvim-treesitter/nvim-treesitter', + config = function() + require("nvim-treesitter.configs").setup({ + ensure_installed = "all", + auto_install = true, + sync_install = false, + highlight = { + enable = true, + }, + }) + end +} diff --git a/.config/nvim/lua/plugins/telescope.lua b/.config/nvim/lua/plugins/telescope.lua index fc02c7a..d51d1af 100644 --- a/.config/nvim/lua/plugins/telescope.lua +++ b/.config/nvim/lua/plugins/telescope.lua @@ -1,23 +1,23 @@ return { - "nvim-telescope/telescope.nvim", - tag = "0.1.8", - dependencies = { "nvim-lua/plenary.nvim" }, - event = "VimEnter", - config = function() - local builtin = require("telescope.builtin") - vim.keymap.set("n", "sf", builtin.find_files, { desc = "[S]earch [F]iles" }) - vim.keymap.set("n", "sg", builtin.live_grep, { desc = "[S]earch [G]rep" }) + "nvim-telescope/telescope.nvim", + tag = "0.1.8", + dependencies = { "nvim-lua/plenary.nvim" }, + event = "VimEnter", + config = function() + local builtin = require("telescope.builtin") + vim.keymap.set("n", "sf", builtin.find_files, { desc = "[S]earch [F]iles" }) + vim.keymap.set("n", "sg", builtin.live_grep, { desc = "[S]earch [G]rep" }) - vim.keymap.set("n", "/", function() - -- You can pass additional configuration to Telescope to change the theme, layout, etc. - builtin.current_buffer_fuzzy_find(require("telescope.themes").get_dropdown({ - winblend = 20, - previewer = false, - })) - end, { desc = "[/] Fuzzily search in current buffer" }) + vim.keymap.set("n", "/", function() + -- You can pass additional configuration to Telescope to change the theme, layout, etc. + builtin.current_buffer_fuzzy_find(require("telescope.themes").get_dropdown({ + winblend = 20, + previewer = false, + })) + end, { desc = "[/] Fuzzily search in current buffer" }) - vim.keymap.set("n", "ff", function() - require("telescope.builtin").lsp_document_symbols({ symbols = "function" }) - end, { desc = "[F]ind [F]unction" }) - end, + vim.keymap.set("n", "ff", function() + require("telescope.builtin").lsp_document_symbols({ symbols = "function" }) + end, { desc = "[F]ind [F]unction" }) + end, }