Compare commits
	
		
			8 Commits
		
	
	
		
			6825883350
			...
			Windows
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 1337963f72 | |||
| 6b8298f00d | |||
| 9db9a8f594 | |||
| a6c0657d70 | |||
| bd1e208133 | |||
| 52c7c5099d | |||
| 032d00a164 | |||
| 98dd2510c9 | 
							
								
								
									
										5
									
								
								after/ftplugin/cpp.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								after/ftplugin/cpp.lua
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,5 @@ | |||||||
|  | local tab_spacing = 2 | ||||||
|  | vim.opt.tabstop = tab_spacing | ||||||
|  | vim.opt.softtabstop = tab_spacing | ||||||
|  | vim.opt.shiftwidth = tab_spacing | ||||||
|  | vim.opt_local.makeprg = 'msbuild .\\game.vcxproj /p:Configuration=Release /p:Platform=x64' | ||||||
							
								
								
									
										4
									
								
								after/ftplugin/php.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								after/ftplugin/php.lua
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,4 @@ | |||||||
|  | vim.keymap.set("n", "<space>pa", function() | ||||||
|  |   package.loaded["php.artisan"] = nil | ||||||
|  |   require("php.artisan").telescope_select_artisan() | ||||||
|  | end) | ||||||
							
								
								
									
										10
									
								
								after/plugin/colors.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								after/plugin/colors.lua
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,10 @@ | |||||||
|  | function ColorMyPencils(color) | ||||||
|  |     color = color or "catppuccin" | ||||||
|  |     vim.cmd.colorscheme(color) | ||||||
|  |  | ||||||
|  |     -- make transparent BG | ||||||
|  |     vim.api.nvim_set_hl(0, "Normal", { bg = "none" }) | ||||||
|  |     vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" }) | ||||||
|  | end | ||||||
|  |  | ||||||
|  | ColorMyPencils() | ||||||
| @ -1,40 +1,56 @@ | |||||||
| { | { | ||||||
|  |   "Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" }, | ||||||
|   "LuaSnip": { "branch": "master", "commit": "03c8e67eb7293c404845b3982db895d59c0d1538" }, |   "LuaSnip": { "branch": "master", "commit": "03c8e67eb7293c404845b3982db895d59c0d1538" }, | ||||||
|   "catppuccin": { "branch": "main", "commit": "63685e1562ef53873c9764b483d7ac5c7a608922" }, |   "avante.nvim": { "branch": "main", "commit": "eb1cd44731783024621beafe4e46204cbc9a4320" }, | ||||||
|   "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, |   "catppuccin": { "branch": "main", "commit": "5b5e3aef9ad7af84f463d17b5479f06b87d5c429" }, | ||||||
|  |   "cmp-buffer": { "branch": "main", "commit": "b74fab3656eea9de20a9b8116afa3cfc4ec09657" }, | ||||||
|   "cmp-cmdline": { "branch": "main", "commit": "d250c63aa13ead745e3a40f61fdd3470efde3923" }, |   "cmp-cmdline": { "branch": "main", "commit": "d250c63aa13ead745e3a40f61fdd3470efde3923" }, | ||||||
|   "cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" }, |   "cmp-nvim-lsp": { "branch": "main", "commit": "a8912b88ce488f411177fc8aed358b04dc246d7b" }, | ||||||
|   "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, |   "cmp-path": { "branch": "main", "commit": "c6635aae33a50d6010bf1aa756ac2398a2d54c32" }, | ||||||
|   "conform.nvim": { "branch": "master", "commit": "797de8f79055334104cf77893cd93fe3fc2ac154" }, |   "conform.nvim": { "branch": "master", "commit": "6632e7d788a85bf8405ea0c812d343fc308b7b8c" }, | ||||||
|   "edgy.nvim": { "branch": "main", "commit": "0e8bbab4eba9dab6c237e4a2e146dc0466897be6" }, |   "copilot.vim": { "branch": "release", "commit": "8d1e0f86d8aaa64070c080589bc2a516beb4024f" }, | ||||||
|   "fidget.nvim": { "branch": "main", "commit": "d855eed8a06531a7e8fd0684889b2943f373c469" }, |   "dressing.nvim": { "branch": "master", "commit": "2d7c2db2507fa3c4956142ee607431ddb2828639" }, | ||||||
|   "gitsigns.nvim": { "branch": "main", "commit": "356df59308d8b87486644d2324d7558ac0f3db36" }, |   "edgy.nvim": { "branch": "main", "commit": "7e8dedc39abebe40c289b8012cc89b11c69aa7a0" }, | ||||||
|   "harpoon": { "branch": "harpoon2", "commit": "0378a6c428a0bed6a2781d459d7943843f374bce" }, |   "fidget.nvim": { "branch": "main", "commit": "d9ba6b7bfe29b3119a610892af67602641da778e" }, | ||||||
|   "lazy.nvim": { "branch": "main", "commit": "a09c876f6ef642c8feaea45932df73b058d9a083" }, |   "friendly-snippets": { "branch": "main", "commit": "31f2a2657b6261724313281fe0d8ba6f43f4a4fa" }, | ||||||
|   "lualine.nvim": { "branch": "master", "commit": "544dd1583f9bb27b393f598475c89809c4d5e86b" }, |   "git-worktree.nvim": { "branch": "master", "commit": "f247308e68dab9f1133759b05d944569ad054546" }, | ||||||
|   "mason-lspconfig": { "branch": "main", "commit": "58bc9119ca273c0ce5a66fad1927ef0f617bd81b" }, |   "gitsigns.nvim": { "branch": "main", "commit": "02eafb1273afec94447f66d1a43fc5e477c2ab8a" }, | ||||||
|   "mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" }, |   "harpoon": { "branch": "harpoon2", "commit": "ed1f853847ffd04b2b61c314865665e1dadf22c7" }, | ||||||
|   "neo-tree.nvim": { "branch": "v3.x", "commit": "a77af2e764c5ed4038d27d1c463fa49cd4794e07" }, |   "lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" }, | ||||||
|   "neoconf.nvim": { "branch": "main", "commit": "944f30e58171cf909b6567ce206e9097745560d1" }, |   "lspkind.nvim": { "branch": "master", "commit": "d79a1c3299ad0ef94e255d045bed9fa26025dab6" }, | ||||||
|   "nui.nvim": { "branch": "main", "commit": "b58e2bfda5cea347c9d58b7f11cf3012c7b3953f" }, |   "lualine.nvim": { "branch": "master", "commit": "86fe39534b7da729a1ac56c0466e76f2c663dc42" }, | ||||||
|   "nvim-cmp": { "branch": "main", "commit": "d818fd0624205b34e14888358037fb6f5dc51234" }, |   "mason-lspconfig": { "branch": "main", "commit": "1a31f824b9cd5bc6f342fc29e9a53b60d74af245" }, | ||||||
|   "nvim-dap": { "branch": "master", "commit": "bc03b83c94d0375145ff5ac6a6dcf28c1241e06f" }, |   "mason.nvim": { "branch": "main", "commit": "fc98833b6da5de5a9c5b1446ac541577059555be" }, | ||||||
|   "nvim-dap-ui": { "branch": "master", "commit": "a5606bc5958db86f8d92803bea7400ee26a8d7e4" }, |   "neo-tree.nvim": { "branch": "v3.x", "commit": "9b5d67119c46e3262ffe1508fe6d8540b79ad75d" }, | ||||||
|   "nvim-dap-virtual-text": { "branch": "master", "commit": "484995d573c0f0563f6a66ebdd6c67b649489615" }, |   "neoconf.nvim": { "branch": "main", "commit": "4625534ac67c1a6f1c1731d019a12ca121c4d3c1" }, | ||||||
|   "nvim-jdtls": { "branch": "master", "commit": "6bfd1591583b02e742fc3a2f43393c4ea3b6d3c7" }, |   "nui.nvim": { "branch": "main", "commit": "8d3bce9764e627b62b07424e0df77f680d47ffdb" }, | ||||||
|   "nvim-lspconfig": { "branch": "master", "commit": "1ea7c6126a1aa0121098e4f16c04d5dde1a4ba22" }, |   "nvim-cmp": { "branch": "main", "commit": "b5311ab3ed9c846b585c0c15b7559be131ec4be9" }, | ||||||
|   "nvim-nio": { "branch": "master", "commit": "a428f309119086dc78dd4b19306d2d67be884eee" }, |   "nvim-dap": { "branch": "master", "commit": "7aade9e99bef5f0735cf966e715b3ce45515d786" }, | ||||||
|   "nvim-treesitter": { "branch": "master", "commit": "733fa85db27079ec2757183c5c840ba15a303e1f" }, |   "nvim-dap-ui": { "branch": "master", "commit": "881a69e25bd6658864fab47450025490b74be878" }, | ||||||
|   "nvim-web-devicons": { "branch": "master", "commit": "e612de3d3a41a6b7be47f51e956dddabcbf419d9" }, |   "nvim-dap-virtual-text": { "branch": "master", "commit": "df66808cd78b5a97576bbaeee95ed5ca385a9750" }, | ||||||
|   "oil.nvim": { "branch": "master", "commit": "9e5eb2fcd1dfee2ff30c89273ffff179e42034b9" }, |   "nvim-jdtls": { "branch": "master", "commit": "5ecf13c53c9a66ee97c200970029ab2ebe1c1112" }, | ||||||
|  |   "nvim-lspconfig": { "branch": "master", "commit": "32b6a6449aaba11461fffbb596dd6310af79eea4" }, | ||||||
|  |   "nvim-navigator": { "branch": "master", "commit": "3979c931a85335fed1b0755992898b49d0d54678" }, | ||||||
|  |   "nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" }, | ||||||
|  |   "nvim-treesitter": { "branch": "master", "commit": "684eeac91ed8e297685a97ef70031d19ac1de25a" }, | ||||||
|  |   "nvim-treesitter-context": { "branch": "master", "commit": "198720b4016af04c9590f375d714d5bf8afecc1a" }, | ||||||
|  |   "nvim-web-devicons": { "branch": "master", "commit": "c90dee4e930ab9f49fa6d77f289bff335b49e972" }, | ||||||
|  |   "oil.nvim": { "branch": "master", "commit": "302bbaceeafc690e6419e0c8296e804d60cb9446" }, | ||||||
|  |   "ollama.nvim": { "branch": "main", "commit": "45e58779fecde7ac5b8f62800bbe7180d4b48507" }, | ||||||
|   "playground": { "branch": "master", "commit": "ba48c6a62a280eefb7c85725b0915e021a1a0749" }, |   "playground": { "branch": "master", "commit": "ba48c6a62a280eefb7c85725b0915e021a1a0749" }, | ||||||
|   "plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" }, |   "plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" }, | ||||||
|   "telescope-fzf-native.nvim": { "branch": "main", "commit": "cf48d4dfce44e0b9a2e19a008d6ec6ea6f01a83b" }, |   "telescope-fzf-native.nvim": { "branch": "main", "commit": "1f08ed60cafc8f6168b72b80be2b2ea149813e55" }, | ||||||
|   "telescope.nvim": { "branch": "master", "commit": "79552ef8488cb492e0f9d2bf3b4e808f57515e35" }, |   "telescope.nvim": { "branch": "master", "commit": "a4ed82509cecc56df1c7138920a1aeaf246c0ac5" }, | ||||||
|   "todo-comments.nvim": { "branch": "main", "commit": "ae0a2afb47cf7395dc400e5dc4e05274bf4fb9e0" }, |   "todo-comments.nvim": { "branch": "main", "commit": "304a8d204ee787d2544d8bc23cd38d2f929e7cc5" }, | ||||||
|   "trouble.nvim": { "branch": "main", "commit": "40c5317a6e90fe3393f07b0fee580d9e93a216b4" }, |   "tokyonight.nvim": { "branch": "main", "commit": "057ef5d260c1931f1dffd0f052c685dcd14100a3" }, | ||||||
|   "undotree": { "branch": "master", "commit": "56c684a805fe948936cda0d1b19505b84ad7e065" }, |   "trouble.nvim": { "branch": "main", "commit": "85bedb7eb7fa331a2ccbecb9202d8abba64d37b3" }, | ||||||
|   "vim-be-good": { "branch": "master", "commit": "4fa57b7957715c91326fcead58c1fa898b9b3625" }, |   "twilight.nvim": { "branch": "main", "commit": "1584c0b0a979b71fd86b18d302ba84e9aba85b1b" }, | ||||||
|   "vim-fugitive": { "branch": "master", "commit": "0444df68cd1cdabc7453d6bd84099458327e5513" }, |   "typescript-tools.nvim": { "branch": "master", "commit": "885f4cc150f996f5bff5804874f92ff3051c883d" }, | ||||||
|   "which-key.nvim": { "branch": "main", "commit": "fb070344402cfc662299d9914f5546d840a22126" } |   "undotree": { "branch": "master", "commit": "b951b87b46c34356d44aa71886aecf9dd7f5788a" }, | ||||||
|  |   "vim-be-good": { "branch": "master", "commit": "0ae3de14eb8efc6effe7704b5e46495e91931cc5" }, | ||||||
|  |   "vim-dadbod": { "branch": "master", "commit": "9f0ca8bcef704659820a95c3bbd2c262583a66a1" }, | ||||||
|  |   "vim-dadbod-completion": { "branch": "master", "commit": "a8dac0b3cf6132c80dc9b18bef36d4cf7a9e1fe6" }, | ||||||
|  |   "vim-dadbod-ui": { "branch": "master", "commit": "460432301a5cb280ea265ddfa15c9f3dcd1d26b7" }, | ||||||
|  |   "vim-fugitive": { "branch": "master", "commit": "4a745ea72fa93bb15dd077109afbb3d1809383f2" }, | ||||||
|  |   "zen-mode.nvim": { "branch": "main", "commit": "863f150ca321b3dd8aa1a2b69b5f411a220e144f" } | ||||||
| } | } | ||||||
|  | |||||||
| @ -1,10 +0,0 @@ | |||||||
| function ColorMyPencils(color) |  | ||||||
|     color = color or "tokyonight" |  | ||||||
|     vim.cmd.colorscheme(color) |  | ||||||
|  |  | ||||||
|     -- make transparent BG |  | ||||||
|      vim.api.nvim_set_hl(0, "Normal", {bg = "none"}) |  | ||||||
|      vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none"}) |  | ||||||
| end |  | ||||||
|  |  | ||||||
| ColorMyPencils() |  | ||||||
| @ -1,6 +1,4 @@ | |||||||
| require("barink.vim") | require("barink.vim") | ||||||
| require("barink.keys") |  | ||||||
|  |  | ||||||
| local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" | local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" | ||||||
| if not vim.loop.fs_stat(lazypath) then | if not vim.loop.fs_stat(lazypath) then | ||||||
|     vim.fn.system({ |     vim.fn.system({ | ||||||
| @ -13,5 +11,12 @@ if not vim.loop.fs_stat(lazypath) then | |||||||
|     }) |     }) | ||||||
| end | end | ||||||
| vim.opt.rtp:prepend(lazypath) | vim.opt.rtp:prepend(lazypath) | ||||||
|  | require("barink.keys") | ||||||
|  | require("lazy").setup("barink.plugins" , { | ||||||
|  |     root = vim.fn.stdpath("data") .. "/lazy",  | ||||||
|  |     change_detection = { | ||||||
|  |       enabled = false, | ||||||
|  |       notify = true,  | ||||||
|  |     }, | ||||||
|  |  | ||||||
| require("lazy").setup("barink.plugins") | }) | ||||||
|  | |||||||
| @ -20,17 +20,55 @@ vim.keymap.set('n', '<A-S-k>', ':m .-2<CR>==', {noremap = true}) | |||||||
| vim.keymap.set('i', '<A-j>', ':m .+1<CR>==gi', { noremap = true }) | vim.keymap.set('i', '<A-j>', ':m .+1<CR>==gi', { noremap = true }) | ||||||
| vim.keymap.set('i', '<A-k>', ':m .-2<CR>==gi', { noremap = true }) | vim.keymap.set('i', '<A-k>', ':m .-2<CR>==gi', { noremap = true }) | ||||||
|  |  | ||||||
|  | -- Simplified split navigation | ||||||
|  | vim.keymap.set('n', '<C-h>', '<C-w><C-h>') | ||||||
|  | vim.keymap.set('n', '<C-j>', '<C-w><C-j>') | ||||||
|  | vim.keymap.set('n', '<C-k>', '<C-w><C-k>') | ||||||
|  | vim.keymap.set('n', '<C-l>', '<C-w><C-l>') | ||||||
| -- Diagnostics ! | -- Diagnostics ! | ||||||
| vim.keymap.set('n', '<C-T>', function() require('trouble').toggle() end ) | vim.keymap.set('n', '<C-T>', function() require('trouble').toggle('diagnostics') end) | ||||||
| vim.keymap.set('n', '<leader>d', function() vim.diagnostic.open_float() end) | vim.keymap.set('n', '<leader>d', function() vim.diagnostic.open_float() end) | ||||||
| vim.keymap.set('n', '<leader>dn', function() vim.diagnostic.goto_next() end) | vim.keymap.set('n', '<leader>dn', function() vim.diagnostic.goto_next() end) | ||||||
| vim.keymap.set('n', '<leader>dp', function() vim.diagnostic.goto_prev() end) | vim.keymap.set('n', '<leader>dp', function() vim.diagnostic.goto_prev() end) | ||||||
| vim.keymap.set('n', '<C-d>', function () vim.lsp.buf.code_action() end) | vim.keymap.set('n', '<leader>ca', function() vim.lsp.buf.code_action() end) | ||||||
| -- Debugging | -- Debugging | ||||||
| vim.keymap.set('n', '<leader>sb', function () require('dap').toggle_breakpoint() end ) | vim.keymap.set('n', '<leader>b', function() require('dap').toggle_breakpoint() end) | ||||||
| vim.keymap.set('n', '<leader>db', function () require('dapui').toggle() end ) | vim.keymap.set('n', '<F5>', function() | ||||||
| vim.keymap.set('n', '<F5>', function () print("Start debug session" ) require('dap').continue() end ) |     print("Start debug session") | ||||||
|  |     require('dap').continue() | ||||||
|  | end) | ||||||
| vim.keymap.set('n', '<F6>', function() require('dap').step_over() end) | vim.keymap.set('n', '<F6>', function() require('dap').step_over() end) | ||||||
| vim.keymap.set('n', '<F7>', function() require('dap').step_into() end) | vim.keymap.set('n', '<F7>', function() require('dap').step_into() end) | ||||||
|  |  | ||||||
| vim.keymap.set('n', '<leader>=', ":Gen Generate<CR>") | vim.keymap.set('n', '<leader>=', ":Gen Generate<CR>") | ||||||
|  |  | ||||||
|  | -- Easily hit escape in terminal mode. | ||||||
|  | vim.keymap.set("t", "<esc><esc>", "<c-\\><c-n>") | ||||||
|  |  | ||||||
|  | -- Open a terminal at the bottom of the screen with a fixed height. | ||||||
|  | vim.keymap.set("n", ",st", function() | ||||||
|  |     vim.cmd.new() | ||||||
|  |     vim.cmd.wincmd "J" | ||||||
|  |     vim.api.nvim_win_set_height(0, 12) | ||||||
|  |     vim.wo.winfixheight = true | ||||||
|  |     vim.cmd.term() | ||||||
|  | end) | ||||||
|  |  | ||||||
|  | -- Open quickfix list | ||||||
|  | vim.keymap.set("n", "<M-k>", "<cmd>cnext<CR>zz") | ||||||
|  | vim.keymap.set("n", "<M-j>", "<cmd>cprev<CR>zz") | ||||||
|  |  | ||||||
|  |  | ||||||
|  | -- Go to next in location list | ||||||
|  | vim.keymap.set("n", "<leader>k", "<cmd>lnext<CR>zz") | ||||||
|  | vim.keymap.set("n", "<leader>j", "<cmd>lprev<CR>zz") | ||||||
|  |  | ||||||
|  |  | ||||||
|  | -- Highlight on yank | ||||||
|  | vim.api.nvim_create_autocmd("TextYankPost", { | ||||||
|  |     desc = "Highlight when yanking text ", | ||||||
|  |     group = vim.api.nvim_create_augroup('barink', { clear = true }), | ||||||
|  |     callback = function() | ||||||
|  |         vim.highlight.on_yank() | ||||||
|  |     end | ||||||
|  | }) | ||||||
|  | |||||||
							
								
								
									
										55
									
								
								lua/barink/plugins/AI.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										55
									
								
								lua/barink/plugins/AI.lua
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,55 @@ | |||||||
|  | return { | ||||||
|  |     "github/copilot.vim", | ||||||
|  |     { | ||||||
|  |         "nomnivore/ollama.nvim", | ||||||
|  |         dependencies = { | ||||||
|  |             "nvim-lua/plenary.nvim", | ||||||
|  |         }, | ||||||
|  |         cmd = { "Ollama", "OllamaModel", "OllamaServe", "OllamaServeStop" }, | ||||||
|  |         keys = { | ||||||
|  |             { | ||||||
|  |                 "<leader>oo", | ||||||
|  |                 ":<c-u>lua require('ollama').prompt()<cr>", | ||||||
|  |                 desc = "ollama prompt", | ||||||
|  |                 mode = { "n", "v" }, | ||||||
|  |             }, | ||||||
|  |             { | ||||||
|  |                 "<leader>oG", | ||||||
|  |                 ":<c-u>lua require('ollama').prompt('Generate_Code')<cr>", | ||||||
|  |                 desc = "ollama Generate Code", | ||||||
|  |                 mode = { "n", "v" }, | ||||||
|  |             }, | ||||||
|  |         }, | ||||||
|  |  | ||||||
|  |         opts = { | ||||||
|  |             model = "qwen2.5-coder" | ||||||
|  |         }, | ||||||
|  |     }, | ||||||
|  |     { | ||||||
|  |         "yetone/avante.nvim", | ||||||
|  |         event = "VeryLazy", | ||||||
|  |         version = false, -- Never set this value to "*"! Never! | ||||||
|  |         opts = { | ||||||
|  |             system_prompt = function() | ||||||
|  |                 local hub = require("mcphub").get_hub_instance() | ||||||
|  |                 return hub:get_active_servers_prompt() | ||||||
|  |             end, | ||||||
|  |             custom_tools = function() | ||||||
|  |                 return { | ||||||
|  |                     require("mcphub.extensions.avante").mcp_tool(), | ||||||
|  |                 } | ||||||
|  |             end, | ||||||
|  |             provider = "ollama", | ||||||
|  |             ollama = { | ||||||
|  |                 model = "qwen2.5-coder" | ||||||
|  |             } | ||||||
|  |         }, | ||||||
|  |         dependencies = { | ||||||
|  |             "nvim-treesitter/nvim-treesitter", | ||||||
|  |             "stevearc/dressing.nvim", | ||||||
|  |             "nvim-lua/plenary.nvim", | ||||||
|  |             "MunifTanjim/nui.nvim", | ||||||
|  |         } | ||||||
|  |     } | ||||||
|  |  | ||||||
|  | } | ||||||
| @ -2,12 +2,13 @@ return { | |||||||
|     { |     { | ||||||
|         "stevearc/oil.nvim", |         "stevearc/oil.nvim", | ||||||
|         opt = { |         opt = { | ||||||
|             default_file_explorer = false |             default_file_explorer = true | ||||||
|         }, |         }, | ||||||
|         dependencies = { |         dependencies = { | ||||||
|             'nvim-tree/nvim-web-devicons' |             'nvim-tree/nvim-web-devicons' | ||||||
|         }, |         }, | ||||||
|         config = function() |         config = function() | ||||||
|  |             require("oil").setup() | ||||||
|             vim.keymap.set("n", "-", "<CMD>Oil<CR>", { desc = "Open parent directory" }) |             vim.keymap.set("n", "-", "<CMD>Oil<CR>", { desc = "Open parent directory" }) | ||||||
|         end |         end | ||||||
|     } |     } | ||||||
|  | |||||||
							
								
								
									
										9
									
								
								lua/barink/plugins/comments.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								lua/barink/plugins/comments.lua
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,9 @@ | |||||||
|  | return { | ||||||
|  |     'numToStr/Comment.nvim', | ||||||
|  |     lazy = false, | ||||||
|  |     opts = { | ||||||
|  |     }, | ||||||
|  |     config = function() | ||||||
|  |         require("Comment").setup() | ||||||
|  |     end | ||||||
|  | } | ||||||
| @ -1,21 +1,20 @@ | |||||||
| return { | return { | ||||||
|     "stevearc/conform.nvim", |     "stevearc/conform.nvim", | ||||||
|     event = { "BufWritePre"}, |     config = function() | ||||||
|     cmd = { "ConformInfo"}, |         require("conform").setup( | ||||||
|     opts = { |             { | ||||||
|                 formatters_by_ft = { |                 formatters_by_ft = { | ||||||
|                     php = { "pint" }, |                     php = { "pint" }, | ||||||
|                     lua = { "stylua" }, |                     lua = { "stylua" }, | ||||||
|                     javascript = { "prettierd", "prettier", stop_after_first = true }, |                     javascript = { "prettierd", "prettier", stop_after_first = true }, | ||||||
|                     typescript = { "prettierd", "prettier", stop_after_first = true }, |                     typescript = { "prettierd", "prettier", stop_after_first = true }, | ||||||
|  |                     java = { "clang-format", }, | ||||||
|  |                     cpp = { "clang-format", }, | ||||||
|                 }, |                 }, | ||||||
|         format_on_save = { timeout_ms = 500 }, |                 format_on_save = { | ||||||
|         default_format_ops = { |                     lsp_fallback = true, | ||||||
|             lsp_format = "fallback" |  | ||||||
|                 }, |                 }, | ||||||
|     }, |             }) | ||||||
|     config = function () |  | ||||||
|        require("conform").setup() |  | ||||||
|         -- Command to run async formatting |         -- Command to run async formatting | ||||||
|         vim.api.nvim_create_user_command("Format", function(args) |         vim.api.nvim_create_user_command("Format", function(args) | ||||||
|             local range = nil |             local range = nil | ||||||
| @ -28,8 +27,5 @@ return { | |||||||
|             end |             end | ||||||
|             require("conform").format({ async = true, lsp_format = "fallback", range = range }) |             require("conform").format({ async = true, lsp_format = "fallback", range = range }) | ||||||
|         end, { range = true }) |         end, { range = true }) | ||||||
|  |  | ||||||
|  |  | ||||||
|     end |     end | ||||||
| } | } | ||||||
|  |  | ||||||
|  | |||||||
							
								
								
									
										16
									
								
								lua/barink/plugins/dadbod-ui.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								lua/barink/plugins/dadbod-ui.lua
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,16 @@ | |||||||
|  | return { | ||||||
|  |     "kristijanhusak/vim-dadbod-ui", | ||||||
|  |     dependencies = { | ||||||
|  |         {'tpope/vim-dadbod', lazy = true }, | ||||||
|  |         { 'kristijanhusak/vim-dadbod-completion', ft = { 'sql', 'mysql', 'plsql'}, lazy = true }, | ||||||
|  |     }, | ||||||
|  |     cmd = { | ||||||
|  |         'DBUI', | ||||||
|  |         'DBUIToggle', | ||||||
|  |         'DBUIAddConnection', | ||||||
|  |         'DBUIFindBuffer', | ||||||
|  |     }, | ||||||
|  |     init = function () | ||||||
|  |        vim.g.db_ui_use_nerd_fonts = 1 | ||||||
|  |     end | ||||||
|  | } | ||||||
| @ -22,21 +22,38 @@ return { | |||||||
|         }, |         }, | ||||||
|         config = function () |         config = function () | ||||||
|             local dap = require('dap') |             local dap = require('dap') | ||||||
|  |             -- Godot Config | ||||||
|  |             dap.adapters.godot = { | ||||||
|  |                 type = "server", | ||||||
|  |                 host = "127.0.0.1", | ||||||
|  |                 port = 6006 | ||||||
|  |             } | ||||||
|  |             --dap.configurations.gdscript{ | ||||||
|  |             --    type = "godot", | ||||||
|  |             --    request = "launch", | ||||||
|  |             --    name = "launch scene", | ||||||
|  |             --    project = "${workspaceFolder}" | ||||||
|  |             --} | ||||||
|  |             -- C/C++ Config  | ||||||
|             dap.configurations.cpp = { |             dap.configurations.cpp = { | ||||||
|                 { |                 { | ||||||
|                 name = "Launch", |                 name = "Launch", | ||||||
|                 type= "codelldb", |                 type= "lldb", | ||||||
|                 request = "launch", |                 request = "launch", | ||||||
|                 program = function () |                 program = function () | ||||||
|                     return vim.fn.input('Path to executable: ', vim.fn.getcwd() , 'file') |                     return vim.fn.input('Path to executable: ', vim.fn.getcwd() , 'file') | ||||||
|                 end, |                 end, | ||||||
|                 cwd = '${workspaceFolder}/Framework', |  | ||||||
|                 stopOnEntry = false, |                 stopOnEntry = false, | ||||||
|  |                 runInTerminal = false, | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|             dap.adapters.lldb = { |             dap.adapters.lldb = { | ||||||
|                 type = 'executable', |                 type = 'server', | ||||||
|                 command = "C:\\Program Files\\LLVM\\bin\\lldb-dap.exe", |                 port= "${port}", | ||||||
|  |                 executable = { | ||||||
|  |                     command = "C:\\Users\\nigel\\AppData\\Local\\nvim-data\\mason\\bin\\codelldb.cmd", | ||||||
|  |                     args = { "--port", "${port}"} | ||||||
|  |                 }, | ||||||
|                 name = 'lldb' |                 name = 'lldb' | ||||||
|             } |             } | ||||||
|  |  | ||||||
| @ -57,17 +74,7 @@ return { | |||||||
|                 name = "Launch file", |                 name = "Launch file", | ||||||
|                 program = "java ${file}", |                 program = "java ${file}", | ||||||
|               }} |               }} | ||||||
|            dap.configurations.cpp = {{ |             -- Golang config | ||||||
|                 name="launch", |  | ||||||
|                 type="lldb", |  | ||||||
|                 request="launch", |  | ||||||
|                 program = function () |  | ||||||
|                     return vim.fn.input('Path to executable: ', vim.fn.getcwd() ..'/', 'file') |  | ||||||
|                 end, |  | ||||||
|                 cwd = '${workspaceFolder}', |  | ||||||
|                 stopOnEntry = false, |  | ||||||
|                 args = {}, |  | ||||||
|             }} |  | ||||||
|             dap.configurations.go = { |             dap.configurations.go = { | ||||||
|               { |               { | ||||||
|                 type = "delve", |                 type = "delve", | ||||||
| @ -99,14 +106,20 @@ return { | |||||||
|                     args = {'dap', '-l', '127.0.0.1:${port}'}, |                     args = {'dap', '-l', '127.0.0.1:${port}'}, | ||||||
|                   } |                   } | ||||||
|                 } |                 } | ||||||
|             dap.adapters.codelldb = { |                 local dap = require("dap") | ||||||
|                 type= 'server', |                 local ui = require("dapui") | ||||||
|                 port = '${port}', |                 dap.listeners.before.attach.dapui_config = function() | ||||||
|                 executable = { |                     ui.open() | ||||||
|                     command = 'C:/Users/Nigel/Appdata/Local/nvim-data/mason/bin/codelldb.cmd', |                 end | ||||||
|                     args = {"--port", "${port}"} |                 dap.listeners.before.launch.dapui_config = function() | ||||||
|                 } |                     ui.open() | ||||||
|             } |                 end | ||||||
|  |                 dap.listeners.before.event_terminated.dapui_config = function() | ||||||
|  |                     ui.close() | ||||||
|  |                 end | ||||||
|  |                 dap.listeners.before.event_exited.dapui_config = function() | ||||||
|  |                     ui.close() | ||||||
|  |                 end | ||||||
|         end |         end | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  | |||||||
| @ -1,8 +1,8 @@ | |||||||
| return { | return { | ||||||
|     "j-hui/fidget.nvim", |     "j-hui/fidget.nvim", | ||||||
|         opts = { |     config = function() | ||||||
|             notification = { |         local opts = { | ||||||
|                 window = { winblend = 0}, |         } | ||||||
|             }, |         require("fidget").setup(opts) | ||||||
|         }, |     end | ||||||
| } | } | ||||||
|  | |||||||
							
								
								
									
										14
									
								
								lua/barink/plugins/git-worktree.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								lua/barink/plugins/git-worktree.lua
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,14 @@ | |||||||
|  | return { | ||||||
|  |     { | ||||||
|  |         'ThePrimeagen/git-worktree.nvim', | ||||||
|  |         dependencies = { | ||||||
|  |             'nvim-telescope/telescope.nvim', | ||||||
|  |         }, | ||||||
|  |         opts = {}, | ||||||
|  |         init = function () | ||||||
|  |             require("git-worktree").setup() | ||||||
|  |             require("telescope").load_extension("git_worktree") | ||||||
|  |         end | ||||||
|  |     } | ||||||
|  | } | ||||||
|  |  | ||||||
| @ -1,4 +1,29 @@ | |||||||
| return { | return { | ||||||
|     'lewis6991/gitsigns.nvim', |     'lewis6991/gitsigns.nvim', | ||||||
|     opt = {} |     config = function() | ||||||
|  |         local opts = { | ||||||
|  |             signs = { | ||||||
|  |                 add          = { text = '+' }, | ||||||
|  |                 change       = { text = "~" }, | ||||||
|  |                 delete       = { text = "_" }, | ||||||
|  |                 topdelete    = { text = "-" }, | ||||||
|  |                 changedelete = { text = "~" } | ||||||
|  |             }, | ||||||
|  |             signs_staged = { | ||||||
|  |                 add          = { text = '+' }, | ||||||
|  |                 change       = { text = "~" }, | ||||||
|  |                 delete       = { text = "_" }, | ||||||
|  |                 topdelete    = { text = "-" }, | ||||||
|  |                 changedelete = { text = "~" }, | ||||||
|  |                 untracked    = { text = "*" }, | ||||||
|  |             }, | ||||||
|  |             signs_staged_enable = true, | ||||||
|  |             signcolumn = true, | ||||||
|  |             watch_gitdir = { | ||||||
|  |                 follow_files = true | ||||||
|  |             }, | ||||||
|  |             auto_attach = true | ||||||
|  |         } | ||||||
|  |         require("gitsigns").setup(opts) | ||||||
|  |     end, | ||||||
| } | } | ||||||
|  | |||||||
| @ -1,22 +1,25 @@ | |||||||
| return { | return { | ||||||
|   "ThePrimeagen/harpoon", |   "ThePrimeagen/harpoon", | ||||||
|   branch = "harpoon2", |   branch = "harpoon2", | ||||||
|     dependencies = {{"nvim-lua/plenary.nvim"}}, |   dependencies = { | ||||||
|  |     { "nvim-lua/plenary.nvim" }, | ||||||
|  |     { "nvim-telescope/telescope.nvim" } | ||||||
|  |   }, | ||||||
|   config = function() |   config = function() | ||||||
|     local harpoon = require("harpoon") |     local harpoon = require("harpoon") | ||||||
|     harpoon.setup() |     harpoon.setup() | ||||||
|  |  | ||||||
|         vim.keymap.set("n", "<leader>a", function() harpoon:list():append() end) |     vim.keymap.set("n", "<leader>ha", function() harpoon:list():add() end) | ||||||
|         vim.keymap.set("n", "<C-h>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end) |     vim.keymap.set("n", "<leader>hh", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end) | ||||||
|  |     vim.keymap.set("n", "<leader>fe", function() toggle_telescope(harpoon:list()) end, | ||||||
|         vim.keymap.set("n", "<leader>1", function() harpoon:list():select(1) end) |       { desc = "Open harpoon window" }) | ||||||
|         vim.keymap.set("n", "<leader>2", function() harpoon:list():select(2) end) |     vim.keymap.set("n", "C-1", function() harpoon:list():select(1) end) | ||||||
|         vim.keymap.set("n", "<leader>3", function() harpoon:list():select(3) end) |     vim.keymap.set("n", "C-2", function() harpoon:list():select(2) end) | ||||||
|         vim.keymap.set("n", "<leader>4", function() harpoon:list():select(4) end) |     vim.keymap.set("n", "C-3", function() harpoon:list():select(3) end) | ||||||
|  |     vim.keymap.set("n", "C-4", function() harpoon:list():select(4) end) | ||||||
|  |  | ||||||
|  |  | ||||||
|         vim.keymap.set("n", "<C-Q>", function() harpoon:list():prev() end) |     vim.keymap.set("n", "<C-,>", function() harpoon:list():prev() end) | ||||||
|         vim.keymap.set("n", "<C-E>", function() harpoon:list():next() end) |     vim.keymap.set("n", "<C-.>", function() harpoon:list():next() end) | ||||||
|  |  | ||||||
|   end |   end | ||||||
| } | } | ||||||
|  | |||||||
| @ -15,18 +15,39 @@ return | |||||||
|         "hrsh7th/nvim-cmp", |         "hrsh7th/nvim-cmp", | ||||||
|         { |         { | ||||||
|             'L3MON4D3/LuaSnip', |             'L3MON4D3/LuaSnip', | ||||||
|                  dependencies = 'hrsh7th/nvim-cmp', |             dependencies = { | ||||||
|  |                 'hrsh7th/nvim-cmp', | ||||||
|  |                 'rafamadriz/friendly-snippets', | ||||||
|  |             }, | ||||||
|             version = "v2.*", |             version = "v2.*", | ||||||
|         }, |         }, | ||||||
|         { 'mfussenegger/nvim-jdtls', dependencies = { 'nvim-dap' } }, |         { 'mfussenegger/nvim-jdtls', dependencies = { 'nvim-dap' } }, | ||||||
|  |         "onsails/lspkind.nvim", | ||||||
|     }, |     }, | ||||||
|     config = function() |     config = function() | ||||||
|  |         vim.opt.completeopt = { "menu", "menuone", "noselect", "preview" } | ||||||
|  |         require("lspkind").init({}) | ||||||
|         require("mason").setup() |         require("mason").setup() | ||||||
|         require("mason-lspconfig").setup({ |         require("mason-lspconfig").setup({ | ||||||
|             ensure_installed = { "lua_ls", "bashls", "rust_analyzer" } |             ensure_installed = { "lua_ls", "bashls", "rust_analyzer" } | ||||||
|         }) |         }) | ||||||
|  |         local ls = require("luasnip") | ||||||
|  |         ls.config.set_config({ | ||||||
|  |             history = true, | ||||||
|  |             updateevents = "TextChanged, TextChangedI", | ||||||
|  |             enable_autosnippets = true, | ||||||
|  |         }) | ||||||
|         local cmp = require('cmp') |         local cmp = require('cmp') | ||||||
|  |         local lspkind = require("lspkind") | ||||||
|         cmp.setup({ |         cmp.setup({ | ||||||
|  |             formatting = { | ||||||
|  |                 format = lspkind.cmp_format({ | ||||||
|  |                     mode = 'symbol', | ||||||
|  |                     maxwidth = 60, | ||||||
|  |                     ellipsis_char = '...', | ||||||
|  |                     show_labelDetails = true, | ||||||
|  |                 }), | ||||||
|  |             }, | ||||||
|             snippet = { |             snippet = { | ||||||
|                 expand = function(args) |                 expand = function(args) | ||||||
|                     require('luasnip').lsp_expand(args.body) |                     require('luasnip').lsp_expand(args.body) | ||||||
| @ -35,15 +56,14 @@ return | |||||||
|             mapping = cmp.mapping.preset.insert({ |             mapping = cmp.mapping.preset.insert({ | ||||||
|                 ['<C-b>'] = cmp.mapping.scroll_docs(-4), |                 ['<C-b>'] = cmp.mapping.scroll_docs(-4), | ||||||
|                 ['<C-f>'] = cmp.mapping.scroll_docs(4), |                 ['<C-f>'] = cmp.mapping.scroll_docs(4), | ||||||
|                     ['<C-Space>'] = cmp.mapping.complete(), |                 ['<C-space>'] = cmp.mapping.complete(), | ||||||
|                 ['<C-e>'] = cmp.mapping.abort(), |                 ['<C-e>'] = cmp.mapping.abort(), | ||||||
|                     ['<CR>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. |                 ['<C-y>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. | ||||||
|             }), |             }), | ||||||
|             sources = cmp.config.sources({ |             sources = cmp.config.sources({ | ||||||
|                 { name = 'nvim_lsp', keyword_length = 1 }, |                 { name = 'nvim_lsp', keyword_length = 1 }, | ||||||
|                     { name = 'luasnip', option = { show_autosnippets = true}}, |                 { name = 'luasnip' }, | ||||||
|                 { name = 'path' }, |                 { name = 'path' }, | ||||||
|                 }, { |  | ||||||
|                 { name = 'buffer',   keyword_length = 2 }, |                 { name = 'buffer',   keyword_length = 2 }, | ||||||
|             }), |             }), | ||||||
|             window = { |             window = { | ||||||
| @ -61,52 +81,48 @@ return | |||||||
|             }) |             }) | ||||||
|         }) |         }) | ||||||
|  |  | ||||||
|             -- Use buffer source for `/` and `?` (if you enabled `native_menu`, this won't work anymore). |         cmp.setup.filetype({ "sql" }, { | ||||||
|             cmp.setup.cmdline({ '/', '?' }, { |  | ||||||
|                 mapping = cmp.mapping.preset.cmdline(), |  | ||||||
|             sources = { |             sources = { | ||||||
|                     { name = 'buffer' } |                 { name = "vim-dadbod-completion" }, | ||||||
|  |                 { name = "buffer" }, | ||||||
|             } |             } | ||||||
|         }) |         }) | ||||||
|  |         -- Use buffer source for `/` and `?` (if you enabled `native_menu`, this won't work anymore). | ||||||
|         -- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore). |         -- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore). | ||||||
|         cmp.setup.cmdline(':', { |         cmp.setup.cmdline(':', { | ||||||
|             mapping = cmp.mapping.preset.cmdline(), |             mapping = cmp.mapping.preset.cmdline(), | ||||||
|             sources = cmp.config.sources({ |             sources = cmp.config.sources({ | ||||||
|                     { name = 'path' } |                 { name = 'path' }, | ||||||
|  |                 { name = 'buffer' } | ||||||
|             }, { |             }, { | ||||||
|                 { name = 'cmdline' } |                 { name = 'cmdline' } | ||||||
|             }), |             }), | ||||||
|             matching = { disallow_symbol_nonprefix_matching = false } |             matching = { disallow_symbol_nonprefix_matching = false } | ||||||
|         }) |         }) | ||||||
|  |  | ||||||
|             local ls = require("luasnip") |  | ||||||
|             ls.config.set_config({ |  | ||||||
|                 history = true, |  | ||||||
|                 updateevents = "TextChanged, TextChangedI", |  | ||||||
|                 enable_autosnippets = true, |  | ||||||
|             }) |  | ||||||
|  |  | ||||||
|         vim.keymap.set({ "i", "s" }, "<C-K>", function() ls.expand() end, { silent = true }) |         vim.keymap.set({ "i", "s" }, "<C-K>", function() ls.expand() end, { silent = true }) | ||||||
|             vim.keymap.set({"i", "s"}, "<C-L>", function() ls.jump(1) end, {silent = true }) |         vim.keymap.set({ "i", "s" }, "<C-n>", function() ls.jump(1) end, { silent = true }) | ||||||
|             vim.keymap.set({"i", "s"}, "<C-J>", function() ls.jump(-1) end, {silent = true}) |         vim.keymap.set({ "i", "s" }, "<C-p>", function() ls.jump(-1) end, { silent = true }) | ||||||
|         vim.keymap.set({ "i", "s" }, "<C-E>", function() |         vim.keymap.set({ "i", "s" }, "<C-E>", function() | ||||||
|             if ls.choice_active() then |             if ls.choice_active() then | ||||||
|                 ls.change_choice(1) |                 ls.change_choice(1) | ||||||
|             end |             end | ||||||
|         end, { silent = true }) |         end, { silent = true }) | ||||||
|  |  | ||||||
|             require("luasnip.loaders.from_lua").load({paths= "C:\\Users\\nigel\\AppData\\Local\\nvim\\lua\\barink\\snippets"}) |         require("luasnip.loaders.from_lua").load({ paths = "~/.config/nvim/lua/barink/snippets" }) | ||||||
|  |         require("luasnip.loaders.from_vscode").lazy_load() | ||||||
|  |  | ||||||
|         -- Set up lspconfig. |         -- Set up lspconfig. | ||||||
|         local capabilities = require("cmp_nvim_lsp").default_capabilities() |         local capabilities = require("cmp_nvim_lsp").default_capabilities() | ||||||
|         local lsp = require("lspconfig") |         local lsp = require("lspconfig") | ||||||
|  |  | ||||||
|         local language_server = { |         local language_server = { | ||||||
|             asm_lsp = true, |             asm_lsp = true, | ||||||
|  |             mojo = true, | ||||||
|             zls = true, |             zls = true, | ||||||
|  |             emmet_language_server = true, | ||||||
|             rust_analyzer = true, |             rust_analyzer = true, | ||||||
|  |             --gdtoolkit = { flags = { debounce_text_changes = 150 }}, | ||||||
|             jdtls = true, |             jdtls = true, | ||||||
|             pylsp = true, |             pylsp = true, | ||||||
|             phpactor = { |             phpactor = { | ||||||
| @ -130,13 +146,24 @@ return | |||||||
|             gopls = true, |             gopls = true, | ||||||
|             intelephense = true, |             intelephense = true, | ||||||
|             lua_ls = { |             lua_ls = { | ||||||
|  |                 config = { | ||||||
|                     settings = { |                     settings = { | ||||||
|                         Lua = { |                         Lua = { | ||||||
|  |                             runtime = { | ||||||
|  |                                 version = 'LuaJIT', | ||||||
|  |                             }, | ||||||
|  |                             workspace = { | ||||||
|  |                                 checkThirdParty = false, | ||||||
|  |                                 library = { | ||||||
|  |                                     vim.env.VIMRUNTIME | ||||||
|  |                                 } | ||||||
|  |                             }, | ||||||
|                             diagnostics = { |                             diagnostics = { | ||||||
|                                 globals = { 'vim' } |                                 globals = { 'vim' } | ||||||
|                             } |                             } | ||||||
|                         } |                         } | ||||||
|                     } |                     } | ||||||
|  |                 } | ||||||
|             }, |             }, | ||||||
|         } |         } | ||||||
|  |  | ||||||
| @ -168,8 +195,6 @@ return | |||||||
|                 vim.keymap.set("n", "<LEADER>cr", vim.lsp.buf.rename, { buffer = -1 }) |                 vim.keymap.set("n", "<LEADER>cr", vim.lsp.buf.rename, { buffer = -1 }) | ||||||
|                 vim.keymap.set("n", "<LEADER>ca", vim.lsp.buf.code_action, { buffer = -1 }) |                 vim.keymap.set("n", "<LEADER>ca", vim.lsp.buf.code_action, { buffer = -1 }) | ||||||
|                 vim.keymap.set("n", "<LEADER>wd", builtin.lsp_document_symbols, { buffer = -1 }) |                 vim.keymap.set("n", "<LEADER>wd", builtin.lsp_document_symbols, { buffer = -1 }) | ||||||
|  |  | ||||||
|  |  | ||||||
|             end |             end | ||||||
|         }) |         }) | ||||||
|     end, |     end, | ||||||
|  | |||||||
							
								
								
									
										16
									
								
								lua/barink/plugins/neovim-context.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								lua/barink/plugins/neovim-context.lua
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,16 @@ | |||||||
|  | return { | ||||||
|  |     { | ||||||
|  |         "nvim-treesitter/nvim-treesitter-context", | ||||||
|  |         dependencies = { | ||||||
|  |         }, | ||||||
|  |         config = function() | ||||||
|  |             require('treesitter-context').setup({ | ||||||
|  |                 enable = true, | ||||||
|  |                 max_lines = 4, | ||||||
|  |                 min_window_height = 0, | ||||||
|  |                 line_numbers = true, | ||||||
|  |                 mode = 'cursor', | ||||||
|  |             }) | ||||||
|  |         end | ||||||
|  |     } | ||||||
|  | } | ||||||
| @ -21,7 +21,7 @@ return { | |||||||
|                 vim.keymap.set('n', '<leader>/', builtin.current_buffer_fuzzy_find) |                 vim.keymap.set('n', '<leader>/', builtin.current_buffer_fuzzy_find) | ||||||
|                 vim.keymap.set('n', '<leader>gw', builtin.grep_string) |                 vim.keymap.set('n', '<leader>gw', builtin.grep_string) | ||||||
|                 vim.keymap.set('n', '<leader>fp',function ()  |                 vim.keymap.set('n', '<leader>fp',function ()  | ||||||
|                     builtin.find_files { cwd = "~/AppData/Local/nvim/lua/barink/"} |                     builtin.find_files { cwd = "~/.config/nvim/lua/barink/"} | ||||||
|                 end) |                 end) | ||||||
|             end |             end | ||||||
|         } |         } | ||||||
|  | |||||||
							
								
								
									
										27
									
								
								lua/barink/plugins/theme.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								lua/barink/plugins/theme.lua
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,27 @@ | |||||||
|  | return { | ||||||
|  |     { | ||||||
|  |         "folke/tokyonight.nvim", | ||||||
|  |         lazy = false, | ||||||
|  |         priority = 1000, | ||||||
|  |         opts = {}, | ||||||
|  |         config = function() | ||||||
|  |             require("tokyonight").setup({ | ||||||
|  |                 style = "night", | ||||||
|  |                 light_style = "day", | ||||||
|  |                 transparent = true, | ||||||
|  |                 terminal_colors = true, | ||||||
|  |                 dim_inactive = false, | ||||||
|  |                 lualine_bold = false, | ||||||
|  |             }) | ||||||
|  |         end | ||||||
|  |     }, | ||||||
|  |     { | ||||||
|  |         "catppuccin/nvim", | ||||||
|  |         name = "catppuccin", | ||||||
|  |         priority = 1000, | ||||||
|  |         config = function() | ||||||
|  |             require("catppuccin").setup() | ||||||
|  |             vim.cmd.colorscheme('catppuccin') | ||||||
|  |         end | ||||||
|  |     } | ||||||
|  | } | ||||||
| @ -1,30 +0,0 @@ | |||||||
| -- return { |  | ||||||
| --         "folke/tokyonight.nvim", |  | ||||||
| --         lazy = false, |  | ||||||
| --         priority = 1000, |  | ||||||
| --         opts = {}, |  | ||||||
| --         config = function() |  | ||||||
| --             require("tokyonight").setup({ |  | ||||||
| --                 style = "night", |  | ||||||
| --                 light_style = "day", |  | ||||||
| --                 transparent = true, |  | ||||||
| --                 terminal_colors = true, |  | ||||||
| --                 dim_inactive = false, |  | ||||||
| --                 lualine_bold = false, |  | ||||||
| --             }) |  | ||||||
| --  |  | ||||||
| --             vim.cmd [[colorscheme tokyonight]] |  | ||||||
| --         end |  | ||||||
| --     } |  | ||||||
|  |  | ||||||
| return { |  | ||||||
|     { |  | ||||||
|     "catppuccin/nvim", |  | ||||||
|     name="catppuccin", |  | ||||||
|     priority=1000, |  | ||||||
|     config = function () |  | ||||||
|         require("catppuccin").setup() |  | ||||||
|         vim.cmd ('colorscheme catppuccin-mocha') |  | ||||||
|     end |  | ||||||
| } |  | ||||||
| } |  | ||||||
							
								
								
									
										6
									
								
								lua/barink/plugins/twilight.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								lua/barink/plugins/twilight.lua
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,6 @@ | |||||||
|  | return { | ||||||
|  |     { | ||||||
|  |         "folke/twilight.nvim", | ||||||
|  |         opts = {} | ||||||
|  |     } | ||||||
|  | } | ||||||
							
								
								
									
										8
									
								
								lua/barink/plugins/typescriptTools.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								lua/barink/plugins/typescriptTools.lua
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,8 @@ | |||||||
|  | return { | ||||||
|  |     "pmizio/typescript-tools.nvim", | ||||||
|  |     dependencies = { | ||||||
|  |         "nvim-lua/plenary.nvim", | ||||||
|  |         "neovim/nvim-lspconfig", | ||||||
|  |     }, | ||||||
|  |     opts = {} | ||||||
|  | } | ||||||
							
								
								
									
										3
									
								
								lua/barink/plugins/vim-dadbod.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								lua/barink/plugins/vim-dadbod.lua
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | |||||||
|  | return { | ||||||
|  |     "tpope/vim-dadbod", | ||||||
|  | } | ||||||
							
								
								
									
										13
									
								
								lua/barink/plugins/wezterm.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								lua/barink/plugins/wezterm.lua
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,13 @@ | |||||||
|  | return { | ||||||
|  |     'craigmac/nvim-navigator', | ||||||
|  |     config = function() | ||||||
|  |         require('Navigator').setup() | ||||||
|  |  | ||||||
|  |         vim.keymap.set({ 'n', 't' }, '<A-h>', '<CMD>NavigatorLeft<CR>') | ||||||
|  |         vim.keymap.set({ 'n', 't' }, '<A-l>', '<CMD>NavigatorRight<CR>') | ||||||
|  |         vim.keymap.set({ 'n', 't' }, '<A-k>', '<CMD>NavigatorUp<CR>') | ||||||
|  |         vim.keymap.set({ 'n', 't' }, '<A-j>', '<CMD>NavigatorDown<CR>') | ||||||
|  |         vim.keymap.set({ 'n', 't' }, '<A-p>', '<CMD>NavigatorPrevious<CR>') | ||||||
|  |     end | ||||||
|  |  | ||||||
|  | } | ||||||
| @ -1,15 +0,0 @@ | |||||||
| return { |  | ||||||
|     "folke/which-key.nvim", |  | ||||||
|     event = "VeryLazy", |  | ||||||
|     opts = { |  | ||||||
|     }, |  | ||||||
|     keys = { |  | ||||||
|         { |  | ||||||
|             "<leader>?", |  | ||||||
|             function() |  | ||||||
|                 require("which-key").show({global = false}) |  | ||||||
|             end, |  | ||||||
|             desc = "Buffer Local Keymaps (which-key)", |  | ||||||
|         } |  | ||||||
|     } |  | ||||||
| } |  | ||||||
							
								
								
									
										4
									
								
								lua/barink/plugins/zen-mode.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								lua/barink/plugins/zen-mode.lua
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,4 @@ | |||||||
|  | return { | ||||||
|  |     "folke/zen-mode.nvim", | ||||||
|  |     opts = {} | ||||||
|  | } | ||||||
| @ -21,11 +21,8 @@ vim.opt.termguicolors = true | |||||||
|  |  | ||||||
| vim.opt.scrolloff = 8 | vim.opt.scrolloff = 8 | ||||||
|  |  | ||||||
| vim.g.netrw_browse_split = 0 |  | ||||||
| vim.g.netrw_winsize = 25 |  | ||||||
|  |  | ||||||
| vim.opt.completeopt = { 'menu', 'menuone', 'noselect' } | vim.opt.completeopt = { 'menu', 'menuone', 'noselect' } | ||||||
|  | vim.opt.inccommand = 'split' | ||||||
| vim.api.nvim_create_autocmd('LspAttach', { | vim.api.nvim_create_autocmd('LspAttach', { | ||||||
|     callback = function(args) |     callback = function(args) | ||||||
|         local client = vim.lsp.get_client_by_id(args.data.client_id) |         local client = vim.lsp.get_client_by_id(args.data.client_id) | ||||||
| @ -35,15 +32,6 @@ vim.api.nvim_create_autocmd('LspAttach', { | |||||||
|     end, |     end, | ||||||
| }) | }) | ||||||
|  |  | ||||||
| --[[ | vim.g.netrw_browse_split = 0 | ||||||
| -- Run zig test on save  | vim.g.netrw_winsize = 25 | ||||||
| -- TODO: fix vim.cmd call  |  | ||||||
| -- TODO: only do this when a zig test file is open  |  | ||||||
| vim.api.nvim_create_autocmd('BufWritePost' , { |  | ||||||
|     callback = function () |  | ||||||
|         vim.cmd{cmd = '!zig' , args= {'test', vim.fn.expand('%')} } |  | ||||||
|     end |  | ||||||
| })]]-- |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user