feat(neovim): add more stuff
This commit is contained in:
parent
9fdf3ec7a1
commit
42decc49ee
7 changed files with 76 additions and 1 deletions
12
neovim/.config/nvim/lua/custom/plugins/auto-session.lua
Normal file
12
neovim/.config/nvim/lua/custom/plugins/auto-session.lua
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
return {
|
||||
'rmagatti/auto-session',
|
||||
lazy = false,
|
||||
|
||||
---enables autocomplete for opts
|
||||
---@module "auto-session"
|
||||
---@type AutoSession.Config
|
||||
opts = {
|
||||
suppressed_dirs = { '~/', '~/projects', '~/Downloads', '/' },
|
||||
-- log_level = 'debug',
|
||||
},
|
||||
}
|
||||
16
neovim/.config/nvim/lua/custom/plugins/bufferline.lua
Normal file
16
neovim/.config/nvim/lua/custom/plugins/bufferline.lua
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
return {
|
||||
'akinsho/bufferline.nvim',
|
||||
version = '*',
|
||||
dependencies = 'nvim-tree/nvim-web-devicons',
|
||||
config = function()
|
||||
require('bufferline').setup {
|
||||
options = {
|
||||
hover = {
|
||||
enabled = true,
|
||||
delay = 150,
|
||||
reveal = { 'close' },
|
||||
},
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
||||
3
neovim/.config/nvim/lua/custom/plugins/presence.lua
Normal file
3
neovim/.config/nvim/lua/custom/plugins/presence.lua
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
return {
|
||||
'andweeb/presence.nvim'
|
||||
}
|
||||
39
neovim/.config/nvim/lua/custom/plugins/trouble.lua
Normal file
39
neovim/.config/nvim/lua/custom/plugins/trouble.lua
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
return {
|
||||
{
|
||||
'folke/trouble.nvim',
|
||||
opts = {}, -- for default options, refer to the configuration section for custom setup.
|
||||
cmd = 'Trouble',
|
||||
keys = {
|
||||
{
|
||||
'tx',
|
||||
'<cmd>Trouble diagnostics toggle<cr>',
|
||||
desc = 'Diagnostics (Trouble)',
|
||||
},
|
||||
--[[ {
|
||||
'<leader>xX',
|
||||
'<cmd>Trouble diagnostics toggle filter.buf=0<cr>',
|
||||
desc = 'Buffer Diagnostics (Trouble)',
|
||||
},
|
||||
{
|
||||
'<leader>cs',
|
||||
'<cmd>Trouble symbols toggle focus=false<cr>',
|
||||
desc = 'Symbols (Trouble)',
|
||||
},
|
||||
{
|
||||
'<leader>cl',
|
||||
'<cmd>Trouble lsp toggle focus=false win.position=right<cr>',
|
||||
desc = 'LSP Definitions / references / ... (Trouble)',
|
||||
},
|
||||
{
|
||||
'<leader>xL',
|
||||
'<cmd>Trouble loclist toggle<cr>',
|
||||
desc = 'Location List (Trouble)',
|
||||
},
|
||||
{
|
||||
'<leader>xQ',
|
||||
'<cmd>Trouble qflist toggle<cr>',
|
||||
desc = 'Quickfix List (Trouble)',
|
||||
}, --]]
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
@ -37,6 +37,9 @@ vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper win
|
|||
-- vim.keymap.set("n", "<C-S-j>", "<C-w>J", { desc = "Move window to the lower" })
|
||||
-- vim.keymap.set("n", "<C-S-k>", "<C-w>K", { desc = "Move window to the upper" })
|
||||
|
||||
vim.keymap.set('n', '<C-b>', '<Cmd>Neotree toggle<CR>')
|
||||
vim.keymap.set('n', '<C-S-p>', '<Cmd>BufferLineCycleNext<CR>')
|
||||
|
||||
-- [[ Basic Autocommands ]]
|
||||
-- See `:help lua-guide-autocommands`
|
||||
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ require('lazy').setup({
|
|||
-- This is the easiest way to modularize your config.
|
||||
--
|
||||
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
|
||||
-- { import = 'custom.plugins' },
|
||||
{ import = 'custom.plugins' },
|
||||
--
|
||||
-- For additional information with loading, sourcing and examples see `:help lazy.nvim-🔌-plugin-spec`
|
||||
-- Or use telescope!
|
||||
|
|
|
|||
|
|
@ -80,4 +80,6 @@ vim.o.smartindent = true
|
|||
vim.o.tabstop = 4
|
||||
vim.o.shiftwidth = 4
|
||||
|
||||
vim.o.termguicolors = true
|
||||
|
||||
-- vim: ts=2 sts=2 sw=2 et
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue