Updated nvim config with new plugin and fixes
parent
0b0157c642
commit
e4ef44aacb
|
|
@ -2,33 +2,34 @@
|
||||||
|
|
||||||
## plugins used
|
## 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)
|
- [nui.nvim](https://github.com/MunifTanjim/nui.nvim.git)
|
||||||
- [mini.map](https://github.com/echasnovski/mini.map.git)
|
- [Comment.nvim](https://github.com/numToStr/Comment.nvim.git)
|
||||||
- [plenary.nvim](https://github.com/nvim-lua/plenary.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)
|
- [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)
|
- [lazy.nvim](https://github.com/folke/lazy.nvim.git)
|
||||||
- [git-conflict.nvim](https://github.com/akinsho/git-conflict.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-lspconfig](https://github.com/neovim/nvim-lspconfig.git)
|
||||||
- [nvim-surround](https://github.com/kylechui/nvim-surround.git)
|
- [outline.nvim](https://github.com/hedyhli/outline.nvim.git)
|
||||||
- [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter.git)
|
- [hurl.nvim](https://github.com/jellydn/hurl.nvim.git)
|
||||||
- [fidget.nvim](https://github.com/j-hui/fidget.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)
|
- [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)
|
- [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)
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
"mini.map": { "branch": "main", "commit": "32a3a5d9a7c074dbb0a4a1d5943d09cb8edbab3f" },
|
"mini.map": { "branch": "main", "commit": "32a3a5d9a7c074dbb0a4a1d5943d09cb8edbab3f" },
|
||||||
"neo-tree.nvim": { "branch": "v3.x", "commit": "f3df514fff2bdd4318127c40470984137f87b62e" },
|
"neo-tree.nvim": { "branch": "v3.x", "commit": "f3df514fff2bdd4318127c40470984137f87b62e" },
|
||||||
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
|
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
|
||||||
|
"nvim-lsp-file-operations": { "branch": "master", "commit": "b9c795d3973e8eec22706af14959bc60c579e771" },
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "92ee7d42320edfbb81f3cad851314ab197fa324a" },
|
"nvim-lspconfig": { "branch": "master", "commit": "92ee7d42320edfbb81f3cad851314ab197fa324a" },
|
||||||
"nvim-notify": { "branch": "master", "commit": "8701bece920b38ea289b457f902e2ad184131a5d" },
|
"nvim-notify": { "branch": "master", "commit": "8701bece920b38ea289b457f902e2ad184131a5d" },
|
||||||
"nvim-surround": { "branch": "main", "commit": "1098d7b3c34adcfa7feb3289ee434529abd4afd1" },
|
"nvim-surround": { "branch": "main", "commit": "1098d7b3c34adcfa7feb3289ee434529abd4afd1" },
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,5 @@
|
||||||
local autocmd = vim.api.nvim_create_autocmd
|
|
||||||
local user_command = vim.api.nvim_create_user_command
|
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()
|
user_command("ExportPlugins", function()
|
||||||
local plugins = require("lazy").plugins()
|
local plugins = require("lazy").plugins()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,13 +30,30 @@ return {
|
||||||
init = function()
|
init = function()
|
||||||
-- opens neotree focused and filling the entire window if no argument is passed
|
-- opens neotree focused and filling the entire window if no argument is passed
|
||||||
if vim.fn.argc() == 0 then
|
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
|
-- 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"
|
-- its the same thing as using filesystem.hijack_netrw_behavior = "open_current"
|
||||||
vim.cmd("Neotree focus position=current")
|
vim.cmd("Neotree focus position=current")
|
||||||
end
|
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 = {},
|
})
|
||||||
|
end,
|
||||||
|
opts = {
|
||||||
|
filesystem = {
|
||||||
|
follow_current_file = { enabled = true },
|
||||||
|
use_libuv_file_watcher = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -169,4 +169,13 @@ return {
|
||||||
"Bilal2453/luvit-meta",
|
"Bilal2453/luvit-meta",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"antosha417/nvim-lsp-file-operations",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
"nvim-neo-tree/neo-tree.nvim",
|
||||||
|
},
|
||||||
|
opts = {},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue