update
This commit is contained in:
1 parent
c1d66f5905
commit
14e6013ad2
61 files changed
+11076
-1144
No files matched your search
@@ -60,6 +60,12 @@ map("i", "jk", "<ESC>")
|
||||
map("i", "kj", "<ESC>")
|
||||
map("i", "jj", "<ESC>")
|
||||
|
||||
-- Terminal Mappings
|
||||
map("t", "jk", "<C-\\><C-n>")
|
||||
map("t", "kj", "<C-\\><C-n>")
|
||||
map("t", "<ESC>", "<C-\\><C-n>")
|
||||
|
||||
|
||||
-- Visual overwrite paste
|
||||
map({ 'v', 'x' }, 'p', '"_dP', opts)
|
||||
|
||||
@@ -171,6 +177,20 @@ vim.keymap.set("n", "<C-k>", "<C-w>k", { desc = "Go to Upper Window", remap = tr
|
||||
vim.keymap.set("n", "<C-l>", "<C-w>l", { desc = "Go to Right Window", remap = true })
|
||||
|
||||
|
||||
-- Move with shift-arrows
|
||||
map("n", "<S-Left>", "<C-w><S-h>", {
|
||||
desc = "Move window to the left"
|
||||
})
|
||||
map("n", "<S-Down>", "<C-w><S-j>", {
|
||||
desc = "Move window down"
|
||||
})
|
||||
map("n", "<S-Up>", "<C-w><S-k>", {
|
||||
desc = "Move window up"
|
||||
})
|
||||
map("n", "<S-Right>", "<C-w><S-l>", {
|
||||
desc = "Move window to the right"
|
||||
})
|
||||
|
||||
-- Resize window using <ctrl> arrow keys
|
||||
vim.keymap.set("n", "<C-Up>", "<cmd>resize +2<cr>", { desc = "Increase Window Height" })
|
||||
vim.keymap.set("n", "<C-Down>", "<cmd>resize -2<cr>", { desc = "Decrease Window Height" })
|
||||
@@ -196,3 +216,33 @@ map('n', '<leader>mu', function()
|
||||
end, { desc = 'Dismiss All Notifications' })
|
||||
|
||||
|
||||
-- Tab management
|
||||
--keymap.set("n", "<leader>to", ":tabnew<CR>") -- open a new tab
|
||||
--keymap.set("n", "<leader>tx", ":tabclose<CR>") -- close a tab
|
||||
--keymap.set("n", "<leader>tn", ":tabn<CR>") -- next tab
|
||||
--keymap.set("n", "<leader>tp", ":tabp<CR>") -- previous tab
|
||||
|
||||
map("n", '<leader>jo', function()
|
||||
if vim.bo.filetype == 'java' then
|
||||
require('jdtls').organize_imports();
|
||||
end
|
||||
end)
|
||||
|
||||
map("n", '<leader>ju', function()
|
||||
if vim.bo.filetype == 'java' then
|
||||
require('jdtls').update_projects_config();
|
||||
end
|
||||
end)
|
||||
|
||||
map("n", '<leader>jc', function()
|
||||
if vim.bo.filetype == 'java' then
|
||||
require('jdtls').test_class();
|
||||
end
|
||||
end)
|
||||
|
||||
map("n", '<leader>jm', function()
|
||||
if vim.bo.filetype == 'java' then
|
||||
require('jdtls').test_nearest_method();
|
||||
end
|
||||
end)
|
||||
|
||||
+3
-1
@@ -69,7 +69,6 @@ return {
|
||||
String = ' ',
|
||||
},
|
||||
ui = {
|
||||
AI = ' ',
|
||||
Arrow = ' ',
|
||||
ArrowClosed = ' ',
|
||||
ArrowLeft = ' ',
|
||||
@@ -92,6 +91,8 @@ return {
|
||||
Color = ' ',
|
||||
Command = ' ',
|
||||
Comment = ' ',
|
||||
Copilot = ' ',
|
||||
CopilotError = ' ',
|
||||
Corner = '└ ',
|
||||
Dashboard = ' ',
|
||||
Database = ' ',
|
||||
@@ -149,6 +150,7 @@ return {
|
||||
Test = ' ',
|
||||
Time = ' ',
|
||||
Trash = ' ',
|
||||
User = ' ',
|
||||
Vim = ' ',
|
||||
Wifi = ' ',
|
||||
Windows = ' ',
|
||||
|
||||
@@ -121,7 +121,6 @@ cmp.setup({
|
||||
vim_item.menu = ({
|
||||
codeium = '[Codeium]',
|
||||
nvim_lsp = '[LSP]',
|
||||
nvim_lua = '[nvim_lua]',
|
||||
luasnip = '[Snippet]',
|
||||
buffer = '[Buffer]',
|
||||
path = '[Path]',
|
||||
@@ -132,7 +131,6 @@ cmp.setup({
|
||||
sources = {
|
||||
{ name = 'nvim_lsp' },
|
||||
{ name = 'path' },
|
||||
{ name = 'nvim_lua' },
|
||||
{ name = 'luasnip', keyword_length = 2 },
|
||||
{ name = 'buffer', keyword_length = 3 },
|
||||
{ name = 'codeium'},
|
||||
|
||||
@@ -102,6 +102,51 @@ dap.configurations.ruby = {
|
||||
},
|
||||
}
|
||||
|
||||
dap.configurations.java = {
|
||||
{
|
||||
name = "Debug Launch (2GB)";
|
||||
type = 'java';
|
||||
request = 'launch';
|
||||
vmArgs = "" ..
|
||||
"-Xmx2g "
|
||||
},
|
||||
{
|
||||
name = "Debug Attach (8000)";
|
||||
type = 'java';
|
||||
request = 'attach';
|
||||
hostName = "127.0.0.1";
|
||||
port = 8000;
|
||||
},
|
||||
{
|
||||
name = "Debug Attach (5005)";
|
||||
type = 'java';
|
||||
request = 'attach';
|
||||
hostName = "127.0.0.1";
|
||||
port = 5005;
|
||||
},
|
||||
{
|
||||
name = "My Custom Java Run Configuration",
|
||||
type = "java",
|
||||
request = "launch",
|
||||
-- You need to extend the classPath to list your dependencies.
|
||||
-- `nvim-jdtls` would automatically add the `classPaths` property if it is missing
|
||||
-- classPaths = {},
|
||||
|
||||
-- If using multi-module projects, remove otherwise.
|
||||
-- projectName = "yourProjectName",
|
||||
|
||||
-- javaExec = "java",
|
||||
mainClass = "replace.with.your.fully.qualified.MainClass",
|
||||
|
||||
-- If using the JDK9+ module system, this needs to be extended
|
||||
-- `nvim-jdtls` would automatically populate this property
|
||||
-- modulePaths = {},
|
||||
vmArgs = "" ..
|
||||
"-Xmx2g "
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
vim.api.nvim_create_user_command('DapUIToggle', function()
|
||||
require('dapui').toggle()
|
||||
end, {})
|
||||
+21
-4
@@ -218,6 +218,16 @@ local plugins = {
|
||||
},
|
||||
},
|
||||
-- Tools
|
||||
{
|
||||
'sontungexpt/url-open',
|
||||
cmd = 'URLOpenUnderCursor',
|
||||
config = load_config('tools.url-open'),
|
||||
},
|
||||
{
|
||||
'stevearc/conform.nvim',
|
||||
event = { 'BufReadPre', 'BufNewFile' },
|
||||
config = load_config('tools.conform'),
|
||||
},
|
||||
{
|
||||
'akinsho/flutter-tools.nvim',
|
||||
dependencies = {
|
||||
@@ -412,10 +422,6 @@ local plugins = {
|
||||
event = 'VeryLazy',
|
||||
config = load_config('tools.auto-save'),
|
||||
},
|
||||
{
|
||||
'CRAG666/code_runner.nvim',
|
||||
config = load_config('tools.code-runner'),
|
||||
},
|
||||
-- Telescope
|
||||
{
|
||||
'nvim-telescope/telescope.nvim',
|
||||
@@ -471,6 +477,7 @@ local plugins = {
|
||||
|
||||
local ts_parsers = {
|
||||
'bash',
|
||||
'c',
|
||||
'css',
|
||||
'dart',
|
||||
'elixir',
|
||||
@@ -480,6 +487,7 @@ local ts_parsers = {
|
||||
'java',
|
||||
'javascript',
|
||||
'json',
|
||||
'kotlin',
|
||||
'lua',
|
||||
'markdown',
|
||||
'markdown_inline', -- markdown code blocks
|
||||
@@ -500,8 +508,17 @@ local lsp_servers = {
|
||||
'bashls',
|
||||
'jsonls',
|
||||
'lua_ls',
|
||||
'html',
|
||||
'kotlin_language_server',
|
||||
'sqlls',
|
||||
'typos_lsp', -- check typos
|
||||
'vimls',
|
||||
'volar',
|
||||
'yamlls',
|
||||
'tailwindcss',
|
||||
'cmake',
|
||||
'tsserver',
|
||||
'pylsp',
|
||||
}
|
||||
|
||||
local util = require('lib.util')
|
||||
|
||||
+32
-31
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"LuaSnip": { "branch": "master", "commit": "de1a287c9cb525ae52bc846e8f6207e5ef1da5ac" },
|
||||
"LuaSnip": { "branch": "master", "commit": "878ace11983444d865a72e1759dbcc331d1ace4c" },
|
||||
"Navigator.nvim": { "branch": "master", "commit": "91d86506ac2a039504d5205d32a1d4bc7aa57072" },
|
||||
"auto-save.nvim": { "branch": "main", "commit": "5fe9ab0c42f0457f2a973e814a6352b8eeb04730" },
|
||||
"ccc.nvim": { "branch": "main", "commit": "f388f1981d222967c741fe9927edf9ba5fa3bcbe" },
|
||||
@@ -10,24 +10,24 @@
|
||||
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
||||
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
|
||||
"co-author.nvim": { "branch": "main", "commit": "3beddbbd5fdf3121921fc7b28fd731cffc70f952" },
|
||||
"code_runner.nvim": { "branch": "main", "commit": "d135c4178bf8980ca5fa4aa6e27ab9ee4373c875" },
|
||||
"codeium.vim": { "branch": "main", "commit": "9406f13cf3eaa08318b76746bd105a04506cab27" },
|
||||
"compiler.nvim": { "branch": "main", "commit": "cb14acd32ba9ea09d01bbe3493aefdc59b68965c" },
|
||||
"codeium.vim": { "branch": "main", "commit": "289eb724e5d6fab2263e94a1ad6e54afebefafb2" },
|
||||
"compiler.nvim": { "branch": "main", "commit": "1cf17971b21415d634fe4c8af791f0b1b4d3a727" },
|
||||
"conform.nvim": { "branch": "master", "commit": "f3b930db4964d60e255c8f9e37b7f2218dfc08cb" },
|
||||
"dashboard-nvim": { "branch": "master", "commit": "5182c09ac8085dc73b78ad0ea9f5479c9a866fc4" },
|
||||
"dressing.nvim": { "branch": "master", "commit": "572314728cb1ce012e825fd66331f52c94acac12" },
|
||||
"dressing.nvim": { "branch": "master", "commit": "3c38ac861e1b8d4077ff46a779cde17330b29f3a" },
|
||||
"flash.nvim": { "branch": "main", "commit": "11a2e667d19d8f48c93c6ed2e2e525ac6b1b79be" },
|
||||
"flutter-tools.nvim": { "branch": "main", "commit": "990a1349c29f7d474a0cd51355aba773ccc9deea" },
|
||||
"fortune.nvim": { "branch": "master", "commit": "12644a2939e5db8144f3fcbc77ce6adc684ed565" },
|
||||
"friendly-snippets": { "branch": "main", "commit": "dd2fd1281d4b22e7b4a5bfafa3e142d958e251f2" },
|
||||
"fortune.nvim": { "branch": "master", "commit": "57ac0b96f58180eab8c0293b7bd0bb5f834433fc" },
|
||||
"friendly-snippets": { "branch": "main", "commit": "d0610077b6129cf9f7f78afbe3a1425d60f6e2f1" },
|
||||
"gitlinker.nvim": { "branch": "master", "commit": "cc59f732f3d043b626c8702cb725c82e54d35c25" },
|
||||
"gitsigns.nvim": { "branch": "main", "commit": "805610a9393fa231f2c2b49cb521bfa413fadb3d" },
|
||||
"gitsigns.nvim": { "branch": "main", "commit": "cdfcd9d39d23c46ae9a040de2c6a8b8bf868746e" },
|
||||
"hardtime.nvim": { "branch": "main", "commit": "eaf4bc31b86419c26ad7b3a142dd36ca545ca2e4" },
|
||||
"harpoon": { "branch": "harpoon2", "commit": "0378a6c428a0bed6a2781d459d7943843f374bce" },
|
||||
"indent-blankline.nvim": { "branch": "master", "commit": "ece00d5fb44d196680a81fd2761062d2fa44663b" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "0de782a6b0ffba599dbd332a4019d852564bf28c" },
|
||||
"indent-blankline.nvim": { "branch": "master", "commit": "d98f537c3492e87b6dc6c2e3f66ac517528f406f" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "24fa2a97085ca8a7220b5b078916f81e316036fd" },
|
||||
"live-server.nvim": { "branch": "main", "commit": "f6f00a3f541251f0320910bb0d03c4ae14ee6d10" },
|
||||
"lsp_lines.nvim": { "branch": "main", "commit": "dbfd8e96ec2696e1ceedcd23fd70e842256e3dea" },
|
||||
"lspsaga.nvim": { "branch": "main", "commit": "ad61778283f26a9fa2c5a8d2f0aca52ba49f32f3" },
|
||||
"lspsaga.nvim": { "branch": "main", "commit": "59d4648c3d4b40f316c3db852b3758c66ff6ca03" },
|
||||
"lualine.nvim": { "branch": "master", "commit": "0a5a66803c7407767b799067986b4dc3036e1983" },
|
||||
"markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" },
|
||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "a4caa0d083aab56f6cd5acf2d42331b74614a585" },
|
||||
@@ -37,49 +37,50 @@
|
||||
"mini.comment": { "branch": "main", "commit": "a4b7e46deb9ad2feb8902cc5dbf087eced112ee5" },
|
||||
"mini.surround": { "branch": "main", "commit": "a1b590cc3b676512de507328d6bbab5e43794720" },
|
||||
"neodev.nvim": { "branch": "main", "commit": "ce9a2e8eaba5649b553529c5498acb43a6c317cd" },
|
||||
"neotest": { "branch": "master", "commit": "5caac5cc235d495a2382bc2980630ef36ac87032" },
|
||||
"neotest": { "branch": "master", "commit": "6f35d797882c6ce0ab7c87dc86561512dc3d7aba" },
|
||||
"neotest-jest": { "branch": "main", "commit": "514fd4eae7da15fd409133086bb8e029b65ac43f" },
|
||||
"neotest-rspec": { "branch": "main", "commit": "48573d5882cbe8d8bcd3b735d9ee7705168b1b87" },
|
||||
"nerdy.nvim": { "branch": "main", "commit": "7d256222fda0031feae405f14d7a9414c7b6529f" },
|
||||
"noice.nvim": { "branch": "main", "commit": "9f6f6ba74f8bfbf7e43d6302cf86b070362f6203" },
|
||||
"none-ls.nvim": { "branch": "main", "commit": "37671797d6e5f9bd0ee3ab965ab2e6de251e1930" },
|
||||
"noice.nvim": { "branch": "main", "commit": "f119045f38792ad5311e5f9be7a879e4c1a95fe0" },
|
||||
"none-ls.nvim": { "branch": "main", "commit": "60f5f80686f5a272ed3281a7d4962cb54dc5348e" },
|
||||
"nui.nvim": { "branch": "main", "commit": "b1b3dcd6ed8f355c78bad3d395ff645be5f8b6ae" },
|
||||
"nvim-autopairs": { "branch": "master", "commit": "c15de7e7981f1111642e7e53799e1211d4606cb9" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "5260e5e8ecadaf13e6b82cf867a909f54e15fd07" },
|
||||
"nvim-dap": { "branch": "master", "commit": "5a2f7121869394502521c52b2bc581ab22c69447" },
|
||||
"nvim-dap-ui": { "branch": "master", "commit": "5934302d63d1ede12c0b22b6f23518bb183fc972" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "9bda20fb967075355f253911bc066a8b5a03c77e" },
|
||||
"nvim-nio": { "branch": "master", "commit": "8765cbc4d0c629c8158a5341e1b4305fd93c3a90" },
|
||||
"nvim-dap": { "branch": "master", "commit": "922ebc75c2fa9305e36402fbd8c984c8638770a0" },
|
||||
"nvim-dap-ui": { "branch": "master", "commit": "334cf3038c4756e6ab999cbac67c847fb654c190" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "d70633830acf605ec03d9728698d9e7232442eb4" },
|
||||
"nvim-nio": { "branch": "master", "commit": "632024157d01e8bc48fd7df6a7de8ffe3fdd4f3a" },
|
||||
"nvim-notify": { "branch": "master", "commit": "d333b6f167900f6d9d42a59005d82919830626bf" },
|
||||
"nvim-spectre": { "branch": "master", "commit": "50e96602153f14c913e1969aaf9720e080394eb3" },
|
||||
"nvim-spectre": { "branch": "master", "commit": "366f46fdd4a1593cc237aea13d5ef113739a472c" },
|
||||
"nvim-spider": { "branch": "main", "commit": "b2f2af0563bb631864cab262d483118f3610e662" },
|
||||
"nvim-tree.lua": { "branch": "master", "commit": "2bc725a3ebc23f0172fb0ab4d1134b81bcc13812" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "7c9c5bed8340031f8a6dad47a58a26eaf15b9a56" },
|
||||
"nvim-tree.lua": { "branch": "master", "commit": "5a87ffe35c4739ffb6b62052572583ad277a20ae" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "ea2b137f35fb1e87a6471ec311805920fdf45745" },
|
||||
"nvim-treesitter-endwise": { "branch": "master", "commit": "8b34305ffc28bd75a22f5a0a9928ee726a85c9a6" },
|
||||
"nvim-treesitter-refactor": { "branch": "master", "commit": "65ad2eca822dfaec2a3603119ec3cc8826a7859e" },
|
||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "5f9bf4b1ead7707e4e74e5319ee56bdc81fb73db" },
|
||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "3557e41418b4a6c5b85d5d64abe94c9c50fa9b14" },
|
||||
"nvim-treesitter-textsubjects": { "branch": "master", "commit": "1428108f18ce9d8cc4481dcedebeeb490eabf395" },
|
||||
"nvim-ts-autotag": { "branch": "main", "commit": "cb57b07803476ee902c89412aeff219a9a58be13" },
|
||||
"nvim-ts-context-commentstring": { "branch": "main", "commit": "cbab9ad88036915beebd13b47e100743ff2ed2d5" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "e37bb1feee9e7320c76050a55443fa843b4b6f83" },
|
||||
"oil.nvim": { "branch": "master", "commit": "06a19f77f1a1da37b675635e6f9c5b5d50bcaacd" },
|
||||
"nvim-ts-autotag": { "branch": "main", "commit": "8ae54b90e36ef1fc5267214b30c2cbff71525fe4" },
|
||||
"nvim-ts-context-commentstring": { "branch": "main", "commit": "cb064386e667def1d241317deed9fd1b38f0dc2e" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "b77921fdc44833c994fdb389d658ccbce5490c16" },
|
||||
"oil.nvim": { "branch": "master", "commit": "2cb39e838e9dcd8b374f09a3a87a2e5ec9d372f6" },
|
||||
"onedark.nvim": { "branch": "master", "commit": "8e4b79b0e6495ddf29552178eceba1e147e6cecf" },
|
||||
"overseer.nvim": { "branch": "master", "commit": "7a9b654df4b3b246d05fff857f32e9fb8ddfb013" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "b5c8de02a44ffeabff678090edd6a132ff8ab77d" },
|
||||
"rainbow-delimiters.nvim": { "branch": "master", "commit": "dd1156723eb8483e4403eb8765bbdff456b6981d" },
|
||||
"overseer.nvim": { "branch": "master", "commit": "31f309692c9dd9162d3f63b5456a7932799c347c" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" },
|
||||
"rainbow-delimiters.nvim": { "branch": "master", "commit": "849803e0a687c6ef7c9a0d305bd4d441017b8abf" },
|
||||
"refactoring.nvim": { "branch": "master", "commit": "d2786877c91aa409c824f27b4ce8a9f560dda60a" },
|
||||
"sniprun": { "branch": "master", "commit": "9006d4af4f7016523f8619ae1526ab4e7f0df785" },
|
||||
"tabout.nvim": { "branch": "master", "commit": "3d7fbc7f5e91ef0f96b4d787c78ad9f8820de3ec" },
|
||||
"tdo.nvim": { "branch": "main", "commit": "95d4651bc5aef366b7d53a0ba6872cf444c09f33" },
|
||||
"telescope-file-browser.nvim": { "branch": "master", "commit": "4d5fd21bae12ee6e9a79232e1c377f43c419d0c5" },
|
||||
"telescope-fzf-native.nvim": { "branch": "main", "commit": "9ef21b2e6bb6ebeaf349a0781745549bbb870d27" },
|
||||
"telescope-menufacture": { "branch": "main", "commit": "79376f887f589a4240267383e8abc0a31861325a" },
|
||||
"telescope-menufacture": { "branch": "main", "commit": "013c6816e62fd024c66ba2a4fe9335ab65d107da" },
|
||||
"telescope-symbols.nvim": { "branch": "master", "commit": "a6d0127a53d39b9fc2af75bd169d288166118aec" },
|
||||
"telescope-undo.nvim": { "branch": "main", "commit": "95b61c01ea3a4c9e8747731148e905bbcf0ccaee" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "0c12735d5aff6a48ffd8111bf144dc2ff44e5975" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "2df52609a1632de5d77a0b2416db6ad9cf32e463" },
|
||||
"termim.nvim": { "branch": "main", "commit": "1f88c66449c832445399c414fc4313dba5174b1b" },
|
||||
"ts-node-action": { "branch": "master", "commit": "6d3b60754fd87963d70eadaa2f77873b447eac26" },
|
||||
"twilight.nvim": { "branch": "main", "commit": "8b7b50c0cb2dc781b2f4262a5ddd57571556d1e4" },
|
||||
"url-open": { "branch": "main", "commit": "9f8f4a56ac709f26aa17d8ef921b272bf2262a30" },
|
||||
"vim-fugitive": { "branch": "master", "commit": "4f59455d2388e113bd510e85b310d15b9228ca0d" },
|
||||
"which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" },
|
||||
"zen-mode.nvim": { "branch": "main", "commit": "78557d972b4bfbb7488e17b5703d25164ae64e6a" }
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
require('code_runner').setup({
|
||||
filetype = {
|
||||
java = {
|
||||
"cd $dir &&",
|
||||
"javac $fileName &&",
|
||||
"java $fileNameWithoutExt"
|
||||
},
|
||||
dart = "cd $path && dart $fn",
|
||||
python = "python3 -u",
|
||||
typescript = "deno run",
|
||||
rust = {
|
||||
"cd $dir &&",
|
||||
"rustc $fileName &&",
|
||||
"$dir/$fileNameWithoutExt"
|
||||
},
|
||||
c = function(...)
|
||||
c_base = {
|
||||
"cd $dir &&",
|
||||
"gcc $fileName -o",
|
||||
"/tmp/$fileNameWithoutExt",
|
||||
}
|
||||
local c_exec = {
|
||||
"&& /tmp/$fileNameWithoutExt &&",
|
||||
"rm /tmp/$fileNameWithoutExt",
|
||||
}
|
||||
vim.ui.input({ prompt = "Add more args:" }, function(input)
|
||||
c_base[4] = input
|
||||
vim.print(vim.tbl_extend("force", c_base, c_exec))
|
||||
require("code_runner.commands").run_from_fn(vim.list_extend(c_base, c_exec))
|
||||
end)
|
||||
end,
|
||||
},
|
||||
})
|
||||
|
||||
@@ -83,10 +83,10 @@ nvim_tree.setup({
|
||||
update_focused_file = { enable = true, update_cwd = true, ignore_list = {} },
|
||||
git = { enable = true, ignore = true, timeout = 500 },
|
||||
view = {
|
||||
width = 40,
|
||||
side = 'left',
|
||||
adaptive_size = true,
|
||||
number = false,
|
||||
relativenumber = false,
|
||||
width = 50,
|
||||
side = 'right',
|
||||
adaptive_size = false,
|
||||
number = true,
|
||||
relativenumber = true,
|
||||
},
|
||||
})
|
||||
Reference in new issue
Block a user