new stuff
This commit is contained in:
		
							parent
							
								
									cb4e930158
								
							
						
					
					
						commit
						0cde876788
					
				
							
								
								
									
										23
									
								
								init.lua
								
								
								
								
							
							
						
						
									
										23
									
								
								init.lua
								
								
								
								
							|  | @ -253,6 +253,7 @@ require('lazy').setup({ | |||
|     'nvim-treesitter/nvim-treesitter', | ||||
|     dependencies = { | ||||
|       'nvim-treesitter/nvim-treesitter-textobjects', | ||||
|       'nvim-treesitter/nvim-treesitter-refactor', | ||||
|     }, | ||||
|     build = ':TSUpdate', | ||||
|   }, | ||||
|  | @ -269,7 +270,7 @@ require('lazy').setup({ | |||
|   --    Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going. | ||||
|   -- | ||||
|   --    For additional information see: https://github.com/folke/lazy.nvim#-structuring-your-plugins | ||||
|   -- { import = 'custom.plugins' }, | ||||
|   { import = 'custom.plugins' }, | ||||
| }, {}) | ||||
| 
 | ||||
| -- [[ Setting options ]] | ||||
|  | @ -313,6 +314,9 @@ vim.o.completeopt = 'menuone,noselect' | |||
| -- NOTE: You should make sure your terminal supports this | ||||
| vim.o.termguicolors = true | ||||
| 
 | ||||
| -- add bufferline | ||||
| require("bufferline").setup {} | ||||
| 
 | ||||
| -- [[ Basic Keymaps ]] | ||||
| 
 | ||||
| -- REMOVE | ||||
|  | @ -328,6 +332,8 @@ vim.keymap.set('n', '<leader>g', ':LazyGit<CR>', { desc = 'Open lazygit' }) | |||
| 
 | ||||
| vim.keymap.set('n', '<leader>f', ':Format<CR>', { desc = 'Format current buffer' }) | ||||
| 
 | ||||
| vim.keymap.set('n', 'f', ':Neotree<CR>', { desc = 'Toggle Neotree' }) | ||||
| 
 | ||||
| -- Keymaps for better default experience | ||||
| -- See `:help vim.keymap.set()` | ||||
| vim.keymap.set({ 'n', 'v' }, '<Space>', '<Nop>', { silent = true }) | ||||
|  | @ -501,6 +507,15 @@ vim.defer_fn(function() | |||
|         }, | ||||
|       }, | ||||
|     }, | ||||
|     refactor = { | ||||
|       smart_rename = { | ||||
|       enable = true, | ||||
|       -- Assign keymaps to false to disable them, e.g. `smart_rename = false`. | ||||
|       keymaps = { | ||||
|         smart_rename = "<leader>r", | ||||
|       }, | ||||
|     }, | ||||
|     } | ||||
|   } | ||||
| end, 0) | ||||
| 
 | ||||
|  | @ -696,3 +711,9 @@ vim.api.nvim_create_user_command("Format", function(args) | |||
|   end | ||||
|   require("conform").format({ async = true, lsp_fallback = true, range = range }) | ||||
| end, { range = true }) | ||||
| 
 | ||||
| vim.g.loaded_netrw = 1 | ||||
| vim.g.loaded_netrwPlugin = 1 | ||||
| 
 | ||||
| -- set termguicolors to enable highlight groups | ||||
| vim.opt.termguicolors = true | ||||
|  |  | |||
|  | @ -1,26 +1,32 @@ | |||
| { | ||||
|   "Comment.nvim": { "branch": "master", "commit": "0236521ea582747b58869cb72f70ccfa967d2e89" }, | ||||
|   "LuaSnip": { "branch": "master", "commit": "6a001360cea89df50f7c5cc8c7a75e6a21f1ef5c" }, | ||||
|   "catppuccin": { "branch": "main", "commit": "64dc309bc157779691be38bbfc5123584e0a4a85" }, | ||||
|   "LuaSnip": { "branch": "master", "commit": "57c9f5c31b3d712376c704673eac8e948c82e9c1" }, | ||||
|   "actions-preview.nvim": { "branch": "master", "commit": "8f79029a36ab6807478f157538a91ccd4af5858f" }, | ||||
|   "bufferline.nvim": { "branch": "main", "commit": "6c456b888823d9e4832aa91c482bccd19445c009" }, | ||||
|   "catppuccin": { "branch": "main", "commit": "079500a625f3ae5aa6efb758f1a17fe4c7a57e52" }, | ||||
|   "cmp-nvim-lsp": { "branch": "main", "commit": "5af77f54de1b16c34b23cba810150689a3a90312" }, | ||||
|   "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, | ||||
|   "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" }, | ||||
|   "conform.nvim": { "branch": "master", "commit": "8b407bb6175846cdc4c499e2a8d28109615a2089" }, | ||||
|   "copilot.vim": { "branch": "release", "commit": "5b19fb001d7f31c4c7c5556d7a97b243bd29f45f" }, | ||||
|   "fidget.nvim": { "branch": "main", "commit": "7b9c383438a2e490e37d57b07ddeae3ab4f4cf69" }, | ||||
|   "fidget.nvim": { "branch": "main", "commit": "1ba4ed7e4ee114df803ccda7ffedaf7ad2c26239" }, | ||||
|   "friendly-snippets": { "branch": "main", "commit": "53d3df271d031c405255e99410628c26a8f0d2b0" }, | ||||
|   "gitsigns.nvim": { "branch": "main", "commit": "d195f0c35ced5174d3ecce1c4c8ebb3b5bc23fa9" }, | ||||
|   "indent-blankline.nvim": { "branch": "master", "commit": "7206c77cb931f79885fc47f88ae18f99148392eb" }, | ||||
|   "indent-blankline.nvim": { "branch": "master", "commit": "258b5d899da7c681ce0e0225de32c593f3914c27" }, | ||||
|   "lazy.nvim": { "branch": "main", "commit": "96584866b9c5e998cbae300594d0ccfd0c464627" }, | ||||
|   "lazygit.nvim": { "branch": "main", "commit": "1e08e3f5ac1152339690140e61a4a32b3bdc7de5" }, | ||||
|   "lualine.nvim": { "branch": "master", "commit": "2248ef254d0a1488a72041cfb45ca9caada6d994" }, | ||||
|   "mason-lspconfig.nvim": { "branch": "main", "commit": "9453e3d6cd2ca45d96e20f343e8f1b927364b630" }, | ||||
|   "mason.nvim": { "branch": "main", "commit": "41e75af1f578e55ba050c863587cffde3556ffa6" }, | ||||
|   "neodev.nvim": { "branch": "main", "commit": "58f83ce5145329f5866ef1c7ff523de03549d24f" }, | ||||
|   "neo-tree.nvim": { "branch": "main", "commit": "77d9f484b88fd380386b46ed9206e5374d69d9d8" }, | ||||
|   "neodev.nvim": { "branch": "main", "commit": "93ab59d5d436b36698c14d0374150a7e5e7bccb6" }, | ||||
|   "nui.nvim": { "branch": "main", "commit": "c9b4de623d19a85b353ff70d2ae9c77143abe69c" }, | ||||
|   "nvim-cmp": { "branch": "main", "commit": "538e37ba87284942c1d76ed38dd497e54e65b891" }, | ||||
|   "nvim-lspconfig": { "branch": "master", "commit": "84f2dd42efffa20d505ac44c78568d778ca7e0a1" }, | ||||
|   "nvim-treesitter": { "branch": "master", "commit": "9bc1f1e6406933e9263456e5761e47b9cb1da71d" }, | ||||
|   "nvim-lspconfig": { "branch": "master", "commit": "6772c1ccec801f2bd099065bebc09debc6474892" }, | ||||
|   "nvim-treesitter": { "branch": "master", "commit": "c153019e11052f38cdf2bdd338750cd103877eba" }, | ||||
|   "nvim-treesitter-refactor": { "branch": "master", "commit": "65ad2eca822dfaec2a3603119ec3cc8826a7859e" }, | ||||
|   "nvim-treesitter-textobjects": { "branch": "master", "commit": "ec1c5bdb3d87ac971749fa6c7dbc2b14884f1f6a" }, | ||||
|   "nvim-web-devicons": { "branch": "master", "commit": "a1425903ab52a0a0460622519e827f224e5b4fee" }, | ||||
|   "plenary.nvim": { "branch": "master", "commit": "55d9fe89e33efd26f532ef20223e5f9430c8b0c0" }, | ||||
|   "telescope-fzf-native.nvim": { "branch": "main", "commit": "6c921ca12321edaa773e324ef64ea301a1d0da62" }, | ||||
|   "telescope.nvim": { "branch": "0.1.x", "commit": "d90956833d7c27e73c621a61f20b29fdb7122709" }, | ||||
|  |  | |||
|  | @ -0,0 +1,6 @@ | |||
| return { | ||||
|   "aznhe21/actions-preview.nvim", | ||||
|   config = function() | ||||
|     vim.keymap.set({"v", "n"}, "gf", require("actions-preview").code_actions) | ||||
|   end, | ||||
| } | ||||
|  | @ -0,0 +1,5 @@ | |||
| return { | ||||
|   'akinsho/bufferline.nvim', | ||||
|   version = "*", | ||||
|   dependencies = 'nvim-tree/nvim-web-devicons' | ||||
| } | ||||
|  | @ -0,0 +1,14 @@ | |||
| vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]]) | ||||
| 
 | ||||
| return { | ||||
|   "nvim-neo-tree/neo-tree.nvim", | ||||
|   version = "*", | ||||
|   dependencies = { | ||||
|     "nvim-lua/plenary.nvim", | ||||
|     "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended | ||||
|     "MunifTanjim/nui.nvim", | ||||
|   }, | ||||
|   config = function () | ||||
|     require('neo-tree').setup {} | ||||
|   end, | ||||
| } | ||||
		Loading…
	
		Reference in New Issue