Compare commits
2 Commits
864f5c9d13
...
7a592d7648
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7a592d7648 | ||
|
|
31cb458f4b |
21
init.lua
21
init.lua
@@ -125,4 +125,25 @@ require("lazy").setup({
|
|||||||
install = { colorscheme = { "retrobox" } },
|
install = { colorscheme = { "retrobox" } },
|
||||||
-- automatically check for plugin updates
|
-- automatically check for plugin updates
|
||||||
checker = { enabled = true },
|
checker = { enabled = true },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ui = {
|
||||||
|
-- If you are using a Nerd Font: set icons to an empty table which will use the
|
||||||
|
-- default lazy.nvim defined Nerd Font icons, otherwise define a unicode icons table
|
||||||
|
icons = vim.g.have_nerd_font and {} or {
|
||||||
|
cmd = '⌘',
|
||||||
|
config = '🛠',
|
||||||
|
event = '📅',
|
||||||
|
ft = '📂',
|
||||||
|
init = '⚙',
|
||||||
|
keys = '🗝',
|
||||||
|
plugin = '🔌',
|
||||||
|
runtime = '💻',
|
||||||
|
require = '🌙',
|
||||||
|
source = '📄',
|
||||||
|
start = '🚀',
|
||||||
|
task = '📌',
|
||||||
|
lazy = '💤 ',
|
||||||
|
},
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
12
lua/plugins/gitsigns.lua
Normal file
12
lua/plugins/gitsigns.lua
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
return { -- Adds git related signs to the gutter, as well as utilities for managing changes
|
||||||
|
'lewis6991/gitsigns.nvim',
|
||||||
|
opts = {
|
||||||
|
signs = {
|
||||||
|
add = { text = '+' },
|
||||||
|
change = { text = '~' },
|
||||||
|
delete = { text = '_' },
|
||||||
|
topdelete = { text = '‾' },
|
||||||
|
changedelete = { text = '~' },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
64
lua/plugins/lualine.lua
Normal file
64
lua/plugins/lualine.lua
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
return {
|
||||||
|
'nvim-lualine/lualine.nvim',
|
||||||
|
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||||
|
config = function()
|
||||||
|
require('lualine').setup {
|
||||||
|
options = {
|
||||||
|
icons_enabled = true,
|
||||||
|
theme = 'auto',
|
||||||
|
component_separators = { left = '', right = ''},
|
||||||
|
section_separators = { left = '', right = ''},
|
||||||
|
disabled_filetypes = {
|
||||||
|
statusline = {},
|
||||||
|
winbar = {},
|
||||||
|
},
|
||||||
|
ignore_focus = {},
|
||||||
|
always_divide_middle = true,
|
||||||
|
always_show_tabline = true,
|
||||||
|
globalstatus = false,
|
||||||
|
refresh = {
|
||||||
|
statusline = 1000,
|
||||||
|
tabline = 1000,
|
||||||
|
winbar = 1000,
|
||||||
|
refresh_time = 16, -- ~60fps
|
||||||
|
events = {
|
||||||
|
'WinEnter',
|
||||||
|
'BufEnter',
|
||||||
|
'BufWritePost',
|
||||||
|
'SessionLoadPost',
|
||||||
|
'FileChangedShellPost',
|
||||||
|
'VimResized',
|
||||||
|
'Filetype',
|
||||||
|
'CursorMoved',
|
||||||
|
'CursorMovedI',
|
||||||
|
'ModeChanged',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
sections = {
|
||||||
|
lualine_a = {'mode', 'lsp_status'},
|
||||||
|
lualine_b = {'branch', 'diff', 'diagnostics'},
|
||||||
|
lualine_c = {'filename'},
|
||||||
|
-- lualine_d = {'tabs', 'windows'},
|
||||||
|
lualine_x = {'searchcount', 'selectioncount', 'fileformat', 'filetype'},
|
||||||
|
lualine_y = {'progress', 'location'},
|
||||||
|
lualine_z = {{'datetime', style = "%m/%d %H:%M"}}
|
||||||
|
},
|
||||||
|
inactive_sections = {
|
||||||
|
lualine_a = {},
|
||||||
|
lualine_b = {},
|
||||||
|
lualine_c = {'filename'},
|
||||||
|
lualine_x = {'location'},
|
||||||
|
lualine_y = {},
|
||||||
|
lualine_z = {}
|
||||||
|
},
|
||||||
|
tabline = {
|
||||||
|
-- lualine_a = {'filename'}
|
||||||
|
},
|
||||||
|
winbar = {},
|
||||||
|
inactive_winbar = {},
|
||||||
|
extensions = {}
|
||||||
|
}
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
38
lua/plugins/mini.lua
Normal file
38
lua/plugins/mini.lua
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
return {
|
||||||
|
-- Collection of various small independent plugins/modules
|
||||||
|
'echasnovski/mini.nvim',
|
||||||
|
config = function()
|
||||||
|
-- Better Around/Inside textobjects
|
||||||
|
--
|
||||||
|
-- Examples:
|
||||||
|
-- - va) - [V]isually select [A]round [)]paren
|
||||||
|
-- - yinq - [Y]ank [I]nside [N]ext [Q]uote
|
||||||
|
-- - ci' - [C]hange [I]nside [']quote
|
||||||
|
require('mini.ai').setup { n_lines = 500 }
|
||||||
|
|
||||||
|
-- Add/delete/replace surroundings (brackets, quotes, etc.)
|
||||||
|
--
|
||||||
|
-- - saiw) - [S]urround [A]dd [I]nner [W]ord [)]Paren
|
||||||
|
-- - sd' - [S]urround [D]elete [']quotes
|
||||||
|
-- - sr)' - [S]urround [R]eplace [)] [']
|
||||||
|
require('mini.surround').setup()
|
||||||
|
|
||||||
|
-- Simple and easy statusline.
|
||||||
|
-- You could remove this setup call if you don't like it,
|
||||||
|
-- and try some other statusline plugin
|
||||||
|
--local statusline = require 'mini.statusline'
|
||||||
|
---- set use_icons to true if you have a Nerd Font
|
||||||
|
--statusline.setup { use_icons = vim.g.have_nerd_font }
|
||||||
|
|
||||||
|
---- 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,
|
||||||
|
}
|
||||||
@@ -1,36 +1,13 @@
|
|||||||
return {
|
return {
|
||||||
'soywod/iris.vim',
|
'soywod/iris.vim', -- unsure
|
||||||
'tpope/vim-commentary',
|
'tpope/vim-commentary', -- commenting lines with shortcut
|
||||||
'vimpostor/vim-tpipeline',
|
-- 'vimpostor/vim-tpipeline', -- integrate with tmux status-line
|
||||||
'michaeljsmith/vim-indent-object',
|
'kshenoy/vim-signature', -- tag lines
|
||||||
'kshenoy/vim-signature',
|
'mg979/vim-visual-multi', -- work on multiple lines at once
|
||||||
'mg979/vim-visual-multi',
|
{'NMAC427/guess-indent.nvim', -- Detect tabstop and shiftwidth automatically
|
||||||
'NMAC427/guess-indent.nvim', -- Detect tabstop and shiftwidth automatically
|
config = function() require('guess-indent').setup {} end,},
|
||||||
'obsidian-nvim/obsidian.nvim',
|
'obsidian-nvim/obsidian.nvim', -- work with obsidian
|
||||||
|
{ 'edluffy/hologram.nvim', auto_display = true,}, --image viewer
|
||||||
{ -- Adds git related signs to the gutter, as well as utilities for managing changes
|
'nvim-tree/nvim-web-devicons', -- nerdfont!
|
||||||
'lewis6991/gitsigns.nvim',
|
'nvim-lualine/lualine.nvim', -- lualine
|
||||||
opts = {
|
|
||||||
signs = {
|
|
||||||
add = { text = '+' },
|
|
||||||
change = { text = '~' },
|
|
||||||
delete = { text = '_' },
|
|
||||||
topdelete = { text = '‾' },
|
|
||||||
changedelete = { text = '~' },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
'alex-popov-tech/store.nvim',
|
|
||||||
dependencies = { 'OXY2DEV/markview.nvim' },
|
|
||||||
opts = {},
|
|
||||||
cmd = 'Store',
|
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
{
|
|
||||||
'edluffy/hologram.nvim',
|
|
||||||
auto_display = true, -- WIP automatic markdown image display, may be prone to breaking
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|||||||
5
lua/plugins/store.lua
Normal file
5
lua/plugins/store.lua
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
return { 'alex-popov-tech/store.nvim',
|
||||||
|
dependencies = { 'OXY2DEV/markview.nvim' },
|
||||||
|
opts = {},
|
||||||
|
cmd = 'Store',
|
||||||
|
}
|
||||||
4
lua/plugins/telescope.lua
Normal file
4
lua/plugins/telescope.lua
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
return {
|
||||||
|
'nvim-telescope/telescope.nvim', tag = 'v0.2.0',
|
||||||
|
dependencies = { 'nvim-lua/plenary.nvim', 'BurntSushi/ripgrep', 'sharkdp/fd' }
|
||||||
|
}
|
||||||
25
lua/plugins/treesitter.lua
Normal file
25
lua/plugins/treesitter.lua
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
return { -- Highlight, edit, and navigate code
|
||||||
|
'nvim-treesitter/nvim-treesitter',
|
||||||
|
build = ':TSUpdate',
|
||||||
|
-- main = 'nvim-treesitter.configs', -- Sets main module to use for opts
|
||||||
|
-- -- [[ Configure Treesitter ]] See `:help nvim-treesitter`
|
||||||
|
-- opts = {
|
||||||
|
-- ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc' },
|
||||||
|
-- -- Autoinstall languages that are not installed
|
||||||
|
-- auto_install = true,
|
||||||
|
-- highlight = {
|
||||||
|
-- enable = true,
|
||||||
|
-- -- Some languages depend on vim's regex highlighting system (such as Ruby) for indent rules.
|
||||||
|
-- -- If you are experiencing weird indenting issues, add the language to
|
||||||
|
-- -- the list of additional_vim_regex_highlighting and disabled languages for indent.
|
||||||
|
-- additional_vim_regex_highlighting = { 'ruby' },
|
||||||
|
-- },
|
||||||
|
-- indent = { enable = true, disable = { 'ruby' } },
|
||||||
|
-- },
|
||||||
|
-- -- There are additional nvim-treesitter modules that you can use to interact
|
||||||
|
-- -- with nvim-treesitter. You should go explore a few and see what interests you:
|
||||||
|
-- --
|
||||||
|
-- -- - Incremental selection: Included, see `:help nvim-treesitter-incremental-selection-mod`
|
||||||
|
-- -- - Show your current context: https://github.com/nvim-treesitter/nvim-treesitter-context
|
||||||
|
-- -- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
|
||||||
|
}
|
||||||
52
lua/plugins/whichkey.lua
Normal file
52
lua/plugins/whichkey.lua
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
return { -- Useful plugin to show you pending keybinds.
|
||||||
|
'folke/which-key.nvim',
|
||||||
|
event = 'VimEnter', -- Sets the loading event to 'VimEnter'
|
||||||
|
opts = {
|
||||||
|
-- delay between pressing a key and opening which-key (milliseconds)
|
||||||
|
-- this setting is independent of vim.o.timeoutlen
|
||||||
|
delay = 0,
|
||||||
|
icons = {
|
||||||
|
-- set icon mappings to true if you have a Nerd Font
|
||||||
|
mappings = vim.g.have_nerd_font,
|
||||||
|
-- If you are using a Nerd Font: set icons.keys to an empty table which will use the
|
||||||
|
-- default which-key.nvim defined Nerd Font icons, otherwise define a string table
|
||||||
|
keys = vim.g.have_nerd_font and {} or {
|
||||||
|
Up = '<Up> ',
|
||||||
|
Down = '<Down> ',
|
||||||
|
Left = '<Left> ',
|
||||||
|
Right = '<Right> ',
|
||||||
|
C = '<C-…> ',
|
||||||
|
M = '<M-…> ',
|
||||||
|
D = '<D-…> ',
|
||||||
|
S = '<S-…> ',
|
||||||
|
CR = '<CR> ',
|
||||||
|
Esc = '<Esc> ',
|
||||||
|
ScrollWheelDown = '<ScrollWheelDown> ',
|
||||||
|
ScrollWheelUp = '<ScrollWheelUp> ',
|
||||||
|
NL = '<NL> ',
|
||||||
|
BS = '<BS> ',
|
||||||
|
Space = '<Space> ',
|
||||||
|
Tab = '<Tab> ',
|
||||||
|
F1 = '<F1>',
|
||||||
|
F2 = '<F2>',
|
||||||
|
F3 = '<F3>',
|
||||||
|
F4 = '<F4>',
|
||||||
|
F5 = '<F5>',
|
||||||
|
F6 = '<F6>',
|
||||||
|
F7 = '<F7>',
|
||||||
|
F8 = '<F8>',
|
||||||
|
F9 = '<F9>',
|
||||||
|
F10 = '<F10>',
|
||||||
|
F11 = '<F11>',
|
||||||
|
F12 = '<F12>',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
-- Document existing key chains
|
||||||
|
spec = {
|
||||||
|
{ '<leader>s', group = '[S]earch' },
|
||||||
|
{ '<leader>t', group = '[T]oggle' },
|
||||||
|
{ '<leader>h', group = 'Git [H]unk', mode = { 'n', 'v' } },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user