Compare commits
7 Commits
e47751c2a5
...
personal
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
be3ec8dc84 | ||
|
|
878bd5748e | ||
|
|
c08b9f3d01 | ||
|
|
764504185d | ||
|
|
3236e7e289 | ||
|
|
fc5be13cac | ||
|
|
85bd433f73 |
14
init.lua
14
init.lua
@@ -4,9 +4,15 @@
|
|||||||
vim.g.mapleader = ' '
|
vim.g.mapleader = ' '
|
||||||
vim.g.maplocalleader = ' '
|
vim.g.maplocalleader = ' '
|
||||||
-- Set to true if you have a Nerd Font installed and selected in the terminal
|
-- Set to true if you have a Nerd Font installed and selected in the terminal
|
||||||
vim.g.have_nerd_font = false
|
vim.g.have_nerd_font = true
|
||||||
|
|
||||||
|
|
||||||
|
vim.g.netrw_liststyle = 3
|
||||||
|
vim.g.netrw_banner = 1
|
||||||
|
vim.g.netrw_altv = 1 -- Create the split of the Netrw window to the left
|
||||||
|
vim.g.netrw_winsize = 30 -- Set the width of the "drawer"
|
||||||
|
vim.g.netrw_browse_split = 4 -- Open files in previous window. This emulates the typical "drawer" behaviorkjk
|
||||||
|
|
||||||
-- [[Setting options]]
|
-- [[Setting options]]
|
||||||
-- See `:help vim.o`
|
-- See `:help vim.o`
|
||||||
-- NOTE: You can change these options as you wish!
|
-- NOTE: You can change these options as you wish!
|
||||||
@@ -61,6 +67,12 @@ vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagn
|
|||||||
|
|
||||||
vim.keymap.set('t', '<Esc><Esc>', '<C-\\><C-n>', { desc = 'Exit terminal mode' })
|
vim.keymap.set('t', '<Esc><Esc>', '<C-\\><C-n>', { desc = 'Exit terminal mode' })
|
||||||
|
|
||||||
|
|
||||||
|
-- run clear and make in open terminal
|
||||||
|
vim.keymap.set('n','<leader>r','<cmd>TermExec cmd="clear && make"<CR>', { desc = '[r]un make in terminal' })
|
||||||
|
vim.keymap.set('n','<leader>n', '<cmd>ToggleTerm direction=vertical name=compile size=70<CR>', { desc = 'open a [n]ew terminal' })
|
||||||
|
vim.keymap.set('n','<leader>t', '<cmd>ToggleTerm<CR>', {desc = '[T]oggle all terminals'})
|
||||||
|
|
||||||
-- TIP: Disable arrow keys in normal mode
|
-- TIP: Disable arrow keys in normal mode
|
||||||
vim.keymap.set('n', '<left>', '<cmd>echo "Use h to move!!"<CR>')
|
vim.keymap.set('n', '<left>', '<cmd>echo "Use h to move!!"<CR>')
|
||||||
vim.keymap.set('n', '<right>', '<cmd>echo "Use l to move!!"<CR>')
|
vim.keymap.set('n', '<right>', '<cmd>echo "Use l to move!!"<CR>')
|
||||||
|
|||||||
@@ -17,22 +17,20 @@ return {
|
|||||||
-- - sr)' - [S]urround [R]eplace [)] [']
|
-- - sr)' - [S]urround [R]eplace [)] [']
|
||||||
require('mini.surround').setup()
|
require('mini.surround').setup()
|
||||||
|
|
||||||
-- Simple and easy statusline.
|
require('mini.cursorword').setup()
|
||||||
-- You could remove this setup call if you don't like it,
|
|
||||||
-- and try some other statusline plugin
|
require('mini.indentscope').setup {draw = {delay = 30 }}
|
||||||
--local statusline = require 'mini.statusline'
|
|
||||||
---- set use_icons to true if you have a Nerd Font
|
require('mini.map').setup()
|
||||||
--statusline.setup { use_icons = vim.g.have_nerd_font }
|
|
||||||
|
require('mini.tabline').setup()
|
||||||
|
|
||||||
|
require('mini.move').setup()
|
||||||
|
|
||||||
|
require('mini.clue').setup()
|
||||||
|
|
||||||
|
require('mini.pairs').setup()
|
||||||
|
|
||||||
---- You can configure sections in the statusline by overriding their
|
|
||||||
---- default behavior. For example, here we set the section for
|
|
||||||
---- cursor location to LINE:COLUMN
|
|
||||||
-----@diagnostic disable-next-line: duplicate-set-field
|
|
||||||
--statusline.section_location = function()
|
|
||||||
-- return '%2l:%-2v'
|
|
||||||
--end
|
|
||||||
|
|
||||||
-- ... and there is more!
|
|
||||||
-- Check out: https://github.com/echasnovski/mini.nvim
|
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
18
lua/plugins/neogit.lua
Normal file
18
lua/plugins/neogit.lua
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
return {
|
||||||
|
"NeogitOrg/neogit",
|
||||||
|
lazy = true,
|
||||||
|
dependencies = {
|
||||||
|
"nvim-lua/plenary.nvim", -- required
|
||||||
|
"sindrets/diffview.nvim", -- optional - Diff integration
|
||||||
|
|
||||||
|
-- Only one of these is needed.
|
||||||
|
"nvim-telescope/telescope.nvim", -- optional
|
||||||
|
"ibhagwan/fzf-lua", -- optional
|
||||||
|
"nvim-mini/mini.pick", -- optional
|
||||||
|
"folke/snacks.nvim", -- optional
|
||||||
|
},
|
||||||
|
cmd = "Neogit",
|
||||||
|
keys = {
|
||||||
|
{ "<leader>gg", "<cmd>Neogit<cr>", desc = "Show Neogit UI" }
|
||||||
|
}
|
||||||
|
}
|
||||||
12
lua/plugins/resize.lua
Normal file
12
lua/plugins/resize.lua
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
return {
|
||||||
|
'0xm4n/resize.nvim',
|
||||||
|
|
||||||
|
keys = {
|
||||||
|
-- Format: { 'key', 'command', desc = 'description', [opts]
|
||||||
|
{ '<M-Left>', "<cmd>lua require('resize').ResizeLeft()<CR>", { silent = true } },
|
||||||
|
{ '<M-Right>', "<cmd>lua require('resize').ResizeRight()<CR>", { silent = true } },
|
||||||
|
{ '<M-Up>', "<cmd>lua require('resize').ResizeUp()<CR>", { silent = true } },
|
||||||
|
{ '<M-Down>', "<cmd>lua require('resize').ResizeDown()<CR>", { silent = true } },
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
@@ -10,4 +10,8 @@ return {
|
|||||||
{ 'edluffy/hologram.nvim', auto_display = true,}, --image viewer
|
{ 'edluffy/hologram.nvim', auto_display = true,}, --image viewer
|
||||||
'nvim-tree/nvim-web-devicons', -- nerdfont!
|
'nvim-tree/nvim-web-devicons', -- nerdfont!
|
||||||
'nvim-lualine/lualine.nvim', -- lualine
|
'nvim-lualine/lualine.nvim', -- lualine
|
||||||
|
'TamaMcGlinn/vim-termhere', --simple terminal QOL
|
||||||
|
"rktjmp/lush.nvim", -- better theme editing
|
||||||
|
{ "denialofsandwich/sudo.nvim", dependencies = { "MunifTanjim/nui.nvim", },config = true, }, --write restricted files without restart
|
||||||
|
{'akinsho/toggleterm.nvim', version = "*", config = true} -- terminal toggling and commands
|
||||||
}
|
}
|
||||||
|
|||||||
6
lua/plugins/sql.lua
Normal file
6
lua/plugins/sql.lua
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
return {
|
||||||
|
'xemptuous/sqlua.nvim',
|
||||||
|
lazy = true,
|
||||||
|
cmd = 'SQLua',
|
||||||
|
config = function() require('sqlua').setup() end
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user