santi setup
This commit is contained in:
parent
1860184830
commit
732d726e7b
5 changed files with 199 additions and 104 deletions
7
lua/config/keybinds.lua
Normal file
7
lua/config/keybinds.lua
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
local keymap = vim.keymap
|
||||
local opts = { noremap = true, silent = true }
|
||||
|
||||
keymap.set('n', '+', '<C-a>')
|
||||
keymap.set('n', '-', '<C-x>')
|
||||
|
||||
keymap.set('n', '<C-a>', 'gg<S-v>G')
|
||||
|
|
@ -2,4 +2,98 @@
|
|||
-- I promise not to create any merge conflicts in this directory :)
|
||||
--
|
||||
-- See the kickstart.nvim README for more information
|
||||
return {}
|
||||
|
||||
local ts_comments = {
|
||||
'folke/ts-comments.nvim',
|
||||
event = 'VeryLazy',
|
||||
opts = {},
|
||||
}
|
||||
|
||||
local nvim_ts_autotag = {
|
||||
'windwp/nvim-ts-autotag',
|
||||
opts = {},
|
||||
}
|
||||
|
||||
local codeium = {
|
||||
'Exafunction/codeium.vim',
|
||||
event = 'BufEnter',
|
||||
}
|
||||
|
||||
local noice = {
|
||||
'folke/noice.nvim',
|
||||
event = 'VeryLazy',
|
||||
dependencies = {
|
||||
'MunifTanjim/nui.nvim',
|
||||
'rcarriga/nvim-notify',
|
||||
},
|
||||
config = function()
|
||||
require('noice').setup {
|
||||
lsp = {
|
||||
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
|
||||
override = {
|
||||
['vim.lsp.util.convert_input_to_markdown_lines'] = true,
|
||||
['vim.lsp.util.stylize_markdown'] = true,
|
||||
['cmp.entry.get_documentation'] = true, -- requires hrsh7th/nvim-cmp
|
||||
},
|
||||
},
|
||||
-- you can enable a preset for easier configuration
|
||||
presets = {
|
||||
bottom_search = true, -- use a classic bottom cmdline for search
|
||||
command_palette = true, -- position the cmdline and popupmenu together
|
||||
long_message_to_split = true, -- long messages will be sent to a split
|
||||
inc_rename = false, -- enables an input dialog for inc-rename.nvim
|
||||
lsp_doc_border = false, -- add a border to hover docs and signature help
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
||||
|
||||
local troble = {
|
||||
'folke/trouble.nvim',
|
||||
cmd = { 'Trouble' },
|
||||
opts = {
|
||||
modes = {
|
||||
lsp = {
|
||||
win = { position = 'right' },
|
||||
},
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
{ '<leader>xx', '<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<cr>', desc = 'Symbols (Trouble)' },
|
||||
{ '<leader>cS', '<cmd>Trouble lsp toggle<cr>', desc = 'LSP references/definitions/... (Trouble)' },
|
||||
{ '<leader>xL', '<cmd>Trouble loclist toggle<cr>', desc = 'Location List (Trouble)' },
|
||||
{ '<leader>xQ', '<cmd>Trouble qflist toggle<cr>', desc = 'Quickfix List (Trouble)' },
|
||||
{
|
||||
'[q',
|
||||
function()
|
||||
if require('trouble').is_open() then
|
||||
require('trouble').prev { skip_groups = true, jump = true }
|
||||
else
|
||||
local ok, err = pcall(vim.cmd.cprev)
|
||||
if not ok then
|
||||
vim.notify(err, vim.log.levels.ERROR)
|
||||
end
|
||||
end
|
||||
end,
|
||||
desc = 'Previous Trouble/Quickfix Item',
|
||||
},
|
||||
{
|
||||
']q',
|
||||
function()
|
||||
if require('trouble').is_open() then
|
||||
require('trouble').next { skip_groups = true, jump = true }
|
||||
else
|
||||
local ok, err = pcall(vim.cmd.cnext)
|
||||
if not ok then
|
||||
vim.notify(err, vim.log.levels.ERROR)
|
||||
end
|
||||
end
|
||||
end,
|
||||
desc = 'Next Trouble/Quickfix Item',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
return { codeium, noice, troble, nvim_ts_autotag, ts_comments }
|
||||
|
|
|
|||
|
|
@ -12,6 +12,13 @@ return {
|
|||
cmd = 'Neotree',
|
||||
keys = {
|
||||
{ '\\', ':Neotree reveal<CR>', desc = 'NeoTree reveal' },
|
||||
{
|
||||
'<leader>ge',
|
||||
function()
|
||||
require('neo-tree.command').execute { source = 'git_status', toggle = true }
|
||||
end,
|
||||
desc = 'Git Explorer',
|
||||
},
|
||||
},
|
||||
opts = {
|
||||
filesystem = {
|
||||
|
|
@ -22,4 +29,7 @@ return {
|
|||
},
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
require('neo-tree').setup(opts)
|
||||
end,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue