should work better now
This commit is contained in:
parent
8f05b02766
commit
32f636c41b
34 changed files with 233 additions and 2298 deletions
|
|
@ -7,12 +7,14 @@ return {
|
|||
opts = {},
|
||||
---@diagnostic enable: missing-fields
|
||||
keys = {
|
||||
{ '<leader>ff', function() require('fzf-lua').files() end, desc = 'Find files' },
|
||||
{ '<leader>fg', function() require('fzf-lua').live_grep() end, desc = 'Live grep' },
|
||||
{ '<leader>fb', function() require('fzf-lua').buffers() end, desc = 'Buffers' },
|
||||
{ '<leader>fh', function() require('fzf-lua').help_tags() end, desc = 'Help tags' },
|
||||
{ '<leader>fr', function() require('fzf-lua').oldfiles() end, desc = 'Recent files' },
|
||||
{ '<leader>fd', function() require('fzf-lua').diagnostic_document() end, desc = 'Diagnostics' },
|
||||
{ '<leader>fs', function() require('fzf-lua').lsp_document_symbols() end, desc = 'LSP symbols' },
|
||||
{ '<leader>ff', function() require('fzf-lua').files() end, desc = 'Find files' },
|
||||
{ '<leader>fg', function() require('fzf-lua').live_grep() end, desc = 'Live grep' },
|
||||
{ '<leader>fb', function() require('fzf-lua').buffers() end, desc = 'Buffers' },
|
||||
{ '<leader>fh', function() require('fzf-lua').help_tags() end, desc = 'Help tags' },
|
||||
{ '<leader>fr', function() require('fzf-lua').oldfiles() end, desc = 'Recent files' },
|
||||
{ '<leader>fd', function() require('fzf-lua').diagnostics_document() end, desc = 'Diagnostics (buffer)' },
|
||||
{ '<leader>fD', function() require('fzf-lua').diagnostics_workspace() end, desc = 'Diagnostics (workspace)' },
|
||||
{ '<leader>fs', function() require('fzf-lua').lsp_document_symbols() end, desc = 'LSP symbols' },
|
||||
{ '<leader>fS', function() require('fzf-lua').lsp_workspace_symbols() end, desc = 'LSP workspace symbols' },
|
||||
},
|
||||
}
|
||||
|
|
|
|||
29
lua/plugins/indent-blankline.lua
Normal file
29
lua/plugins/indent-blankline.lua
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
return {
|
||||
'lukas-reineke/indent-blankline.nvim',
|
||||
main = 'ibl',
|
||||
opts = {
|
||||
indent = {
|
||||
char = '│',
|
||||
tab_char = '│',
|
||||
},
|
||||
scope = {
|
||||
enabled = true,
|
||||
show_start = true,
|
||||
show_end = false,
|
||||
highlight = { 'Function', 'Label' },
|
||||
},
|
||||
exclude = {
|
||||
filetypes = {
|
||||
'help',
|
||||
'dashboard',
|
||||
'neo-tree',
|
||||
'Trouble',
|
||||
'lazy',
|
||||
'mason',
|
||||
'notify',
|
||||
'toggleterm',
|
||||
'lazyterm',
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
31
lua/plugins/rainbow-delimiters.lua
Normal file
31
lua/plugins/rainbow-delimiters.lua
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
return {
|
||||
'HiPhish/rainbow-delimiters.nvim',
|
||||
event = 'VeryLazy',
|
||||
config = function()
|
||||
local rainbow = require('rainbow-delimiters')
|
||||
|
||||
vim.g.rainbow_delimiters = {
|
||||
strategy = {
|
||||
[''] = rainbow.strategy['global'],
|
||||
vim = rainbow.strategy['local'],
|
||||
},
|
||||
query = {
|
||||
[''] = 'rainbow-delimiters',
|
||||
lua = 'rainbow-blocks',
|
||||
},
|
||||
priority = {
|
||||
[''] = 110,
|
||||
lua = 210,
|
||||
},
|
||||
highlight = {
|
||||
'RainbowDelimiterRed',
|
||||
'RainbowDelimiterYellow',
|
||||
'RainbowDelimiterBlue',
|
||||
'RainbowDelimiterOrange',
|
||||
'RainbowDelimiterGreen',
|
||||
'RainbowDelimiterViolet',
|
||||
'RainbowDelimiterCyan',
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
||||
|
|
@ -1,6 +1,34 @@
|
|||
return {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
build = ':TSUpdate',
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
'lua',
|
||||
'vim',
|
||||
'vimdoc',
|
||||
'rust',
|
||||
'typescript',
|
||||
'javascript',
|
||||
'html',
|
||||
'css',
|
||||
'scss',
|
||||
'json',
|
||||
'sql',
|
||||
'nix',
|
||||
'bash',
|
||||
'yaml',
|
||||
'dockerfile',
|
||||
'markdown',
|
||||
'markdown_inline',
|
||||
'c',
|
||||
'cpp',
|
||||
'python',
|
||||
'toml',
|
||||
'astro',
|
||||
'vue',
|
||||
'java',
|
||||
},
|
||||
auto_install = true,
|
||||
highlight = { enable = true },
|
||||
indent = { enable = true },
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,23 +0,0 @@
|
|||
return {
|
||||
'folke/trouble.nvim',
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||
opts = {
|
||||
modes = {
|
||||
diagnostics = {
|
||||
mode = "diagnostics",
|
||||
preview = {
|
||||
type = "diagnostics",
|
||||
relative = "win",
|
||||
position = "right",
|
||||
size = 0.4,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
{ '<leader>xx', '<cmd>Trouble diagnostics toggle<cr>', desc = 'Diagnostics (workspace)' },
|
||||
{ '<leader>xd', '<cmd>Trouble diagnostics toggle filter.buf=0<cr>', desc = 'Diagnostics (buffer)' },
|
||||
{ ']t', function() require('trouble').next({ skip_groups = true, jump = true }) end, desc = 'Next trouble item' },
|
||||
{ '[t', function() require('trouble').prev({ skip_groups = true, jump = true }) end, desc = 'Prev trouble item' },
|
||||
}
|
||||
}
|
||||
|
|
@ -32,8 +32,9 @@ vim.opt.splitbelow = true -- horizontal splits open below
|
|||
vim.opt.splitright = true -- vertical splits open to the right
|
||||
|
||||
-- Misc
|
||||
vim.opt.undofile = true -- persist between sessions
|
||||
vim.opt.undofile = true -- persist between sessions
|
||||
vim.opt.updatetime = 250 -- lower the update delay
|
||||
vim.opt.swapfile = false -- disable this useless shit
|
||||
|
||||
-- Diagnostics
|
||||
vim.diagnostic.config({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue