From e4ef44aacb6b09759ff9dc338238fa69a1a5ebc5 Mon Sep 17 00:00:00 2001 From: Wynd Date: Sun, 18 Jan 2026 11:25:00 +0200 Subject: [PATCH] Updated nvim config with new plugin and fixes --- backup/home/wynd/.config/nvim/README.md | 45 ++++++++++--------- backup/home/wynd/.config/nvim/lazy-lock.json | 1 + .../wynd/.config/nvim/lua/nvwynd/autocmds.lua | 13 ------ .../nvim/lua/nvwynd/plugins/editor.lua | 21 ++++++++- .../.config/nvim/lua/nvwynd/plugins/lsp.lua | 9 ++++ 5 files changed, 52 insertions(+), 37 deletions(-) diff --git a/backup/home/wynd/.config/nvim/README.md b/backup/home/wynd/.config/nvim/README.md index a665bbf..d72a822 100644 --- a/backup/home/wynd/.config/nvim/README.md +++ b/backup/home/wynd/.config/nvim/README.md @@ -2,33 +2,34 @@ ## plugins used -- [telescope-fzf-native.nvim](https://github.com/nvim-telescope/telescope-fzf-native.nvim.git) -- [luvit-meta](https://github.com/Bilal2453/luvit-meta.git) -- [neo-tree.nvim](https://github.com/nvim-neo-tree/neo-tree.nvim.git) -- [nvim-notify](https://github.com/rcarriga/nvim-notify.git) -- [nvim-web-devicons](https://github.com/nvim-tree/nvim-web-devicons.git) -- [lualine.nvim](https://github.com/nvim-lualine/lualine.nvim.git) -- [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim.git) - [nui.nvim](https://github.com/MunifTanjim/nui.nvim.git) -- [mini.map](https://github.com/echasnovski/mini.map.git) -- [plenary.nvim](https://github.com/nvim-lua/plenary.nvim.git) +- [Comment.nvim](https://github.com/numToStr/Comment.nvim.git) +- [friendly-snippets](https://github.com/rafamadriz/friendly-snippets.git) +- [trouble.nvim](https://github.com/folke/trouble.nvim.git) - [which-key.nvim](https://github.com/folke/which-key.nvim.git) +- [nvim-surround](https://github.com/kylechui/nvim-surround.git) - [lazy.nvim](https://github.com/folke/lazy.nvim.git) - [git-conflict.nvim](https://github.com/akinsho/git-conflict.nvim.git) -- [friendly-snippets](https://github.com/rafamadriz/friendly-snippets.git) -- [hurl.nvim](https://github.com/jellydn/hurl.nvim.git) -- [outline.nvim](https://github.com/hedyhli/outline.nvim.git) -- [vim-cool](https://github.com/romainl/vim-cool.git) -- [trouble.nvim](https://github.com/folke/trouble.nvim.git) -- [conform.nvim](https://github.com/stevearc/conform.nvim.git) -- [Comment.nvim](https://github.com/numToStr/Comment.nvim.git) -- [todo-comments.nvim](https://github.com/folke/todo-comments.nvim.git) -- [nvim-ts-autotag](https://github.com/windwp/nvim-ts-autotag.git) -- [dressing.nvim](https://github.com/stevearc/dressing.nvim.git) - [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig.git) -- [nvim-surround](https://github.com/kylechui/nvim-surround.git) -- [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter.git) +- [outline.nvim](https://github.com/hedyhli/outline.nvim.git) +- [hurl.nvim](https://github.com/jellydn/hurl.nvim.git) - [fidget.nvim](https://github.com/j-hui/fidget.nvim.git) -- [catppuccin](https://github.com/catppuccin/nvim.git) +- [vim-cool](https://github.com/romainl/vim-cool.git) - [lazydev.nvim](https://github.com/folke/lazydev.nvim.git) +- [nvim-notify](https://github.com/rcarriga/nvim-notify.git) +- [catppuccin](https://github.com/catppuccin/nvim.git) +- [luvit-meta](https://github.com/Bilal2453/luvit-meta.git) +- [todo-comments.nvim](https://github.com/folke/todo-comments.nvim.git) +- [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter.git) +- [nvim-lsp-file-operations](https://github.com/antosha417/nvim-lsp-file-operations.git) +- [nvim-ts-autotag](https://github.com/windwp/nvim-ts-autotag.git) +- [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim.git) +- [lualine.nvim](https://github.com/nvim-lualine/lualine.nvim.git) +- [dressing.nvim](https://github.com/stevearc/dressing.nvim.git) +- [telescope-fzf-native.nvim](https://github.com/nvim-telescope/telescope-fzf-native.nvim.git) - [blink.cmp](https://github.com/saghen/blink.cmp.git) +- [neo-tree.nvim](https://github.com/nvim-neo-tree/neo-tree.nvim.git) +- [plenary.nvim](https://github.com/nvim-lua/plenary.nvim.git) +- [nvim-web-devicons](https://github.com/nvim-tree/nvim-web-devicons.git) +- [conform.nvim](https://github.com/stevearc/conform.nvim.git) +- [mini.map](https://github.com/echasnovski/mini.map.git) diff --git a/backup/home/wynd/.config/nvim/lazy-lock.json b/backup/home/wynd/.config/nvim/lazy-lock.json index 770f436..c288f13 100644 --- a/backup/home/wynd/.config/nvim/lazy-lock.json +++ b/backup/home/wynd/.config/nvim/lazy-lock.json @@ -15,6 +15,7 @@ "mini.map": { "branch": "main", "commit": "32a3a5d9a7c074dbb0a4a1d5943d09cb8edbab3f" }, "neo-tree.nvim": { "branch": "v3.x", "commit": "f3df514fff2bdd4318127c40470984137f87b62e" }, "nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" }, + "nvim-lsp-file-operations": { "branch": "master", "commit": "b9c795d3973e8eec22706af14959bc60c579e771" }, "nvim-lspconfig": { "branch": "master", "commit": "92ee7d42320edfbb81f3cad851314ab197fa324a" }, "nvim-notify": { "branch": "master", "commit": "8701bece920b38ea289b457f902e2ad184131a5d" }, "nvim-surround": { "branch": "main", "commit": "1098d7b3c34adcfa7feb3289ee434529abd4afd1" }, diff --git a/backup/home/wynd/.config/nvim/lua/nvwynd/autocmds.lua b/backup/home/wynd/.config/nvim/lua/nvwynd/autocmds.lua index 71fb2ba..0cbe130 100644 --- a/backup/home/wynd/.config/nvim/lua/nvwynd/autocmds.lua +++ b/backup/home/wynd/.config/nvim/lua/nvwynd/autocmds.lua @@ -1,18 +1,5 @@ -local autocmd = vim.api.nvim_create_autocmd local user_command = vim.api.nvim_create_user_command --- used for when lazyness takes over and I'm using a mouse to click around in neo-tree --- if insert mode is active then neo-tree won't behave as expected, so we want to stop it -autocmd("BufEnter", { - pattern = { "*" }, - callback = function() - local filetype = vim.filetype.match({ buf = 0 }) - if filetype == nil then - vim.cmd("stopinsert") - end - end, -}) - user_command("ExportPlugins", function() local plugins = require("lazy").plugins() diff --git a/backup/home/wynd/.config/nvim/lua/nvwynd/plugins/editor.lua b/backup/home/wynd/.config/nvim/lua/nvwynd/plugins/editor.lua index 9bc57f5..902de37 100644 --- a/backup/home/wynd/.config/nvim/lua/nvwynd/plugins/editor.lua +++ b/backup/home/wynd/.config/nvim/lua/nvwynd/plugins/editor.lua @@ -30,13 +30,30 @@ return { init = function() -- opens neotree focused and filling the entire window if no argument is passed if vim.fn.argc() == 0 then - require("neo-tree").setup() + require("neo-tree").setup({}) -- position=current is the key here to open neotree on the entire screen and -- its the same thing as using filesystem.hijack_netrw_behavior = "open_current" vim.cmd("Neotree focus position=current") end + + -- used for when lazyness takes over and I'm using a mouse to click around in neo-tree + -- if insert mode is active then neo-tree won't behave as expected, so we want to stop it + vim.api.nvim_create_autocmd("BufEnter", { + pattern = { "neo-tree*" }, + callback = function() + local filetype = vim.filetype.match({ buf = 0 }) + if filetype == nil then + vim.cmd("stopinsert") + end + end, + }) end, - opts = {}, + opts = { + filesystem = { + follow_current_file = { enabled = true }, + use_libuv_file_watcher = true, + }, + }, }, { diff --git a/backup/home/wynd/.config/nvim/lua/nvwynd/plugins/lsp.lua b/backup/home/wynd/.config/nvim/lua/nvwynd/plugins/lsp.lua index 4378c1d..e073d0b 100644 --- a/backup/home/wynd/.config/nvim/lua/nvwynd/plugins/lsp.lua +++ b/backup/home/wynd/.config/nvim/lua/nvwynd/plugins/lsp.lua @@ -169,4 +169,13 @@ return { "Bilal2453/luvit-meta", lazy = true, }, + + { + "antosha417/nvim-lsp-file-operations", + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-neo-tree/neo-tree.nvim", + }, + opts = {}, + }, }