add plugin configs & mess with the binds
This commit is contained in:
30
after/plugin/glance.lua
Normal file
30
after/plugin/glance.lua
Normal file
@ -0,0 +1,30 @@
|
||||
local status_ok, glance = pcall(require, "glance")
|
||||
if not status_ok then
|
||||
return
|
||||
end
|
||||
|
||||
local actions = glance.actions
|
||||
glance.setup {
|
||||
detached = function(winid)
|
||||
return vim.api.nvim_win_get_width(winid) < 100
|
||||
end,
|
||||
|
||||
border = {
|
||||
enable = true,
|
||||
top_char = '',
|
||||
},
|
||||
theme = {
|
||||
enable = false,
|
||||
},
|
||||
folds = {
|
||||
fold_closed = '>',
|
||||
fold_open = 'V',
|
||||
folded = true,
|
||||
},
|
||||
indent_lines = {
|
||||
enable = false,
|
||||
},
|
||||
winbar = {
|
||||
enable = true,
|
||||
},
|
||||
}
|
23
after/plugin/lightbulb.lua
Normal file
23
after/plugin/lightbulb.lua
Normal file
@ -0,0 +1,23 @@
|
||||
local status_ok, lightbulb = pcall(require, "nvim-lightbulb")
|
||||
if not status_ok then
|
||||
return
|
||||
end
|
||||
|
||||
lightbulb.setup {
|
||||
sign = {
|
||||
enabled = true,
|
||||
priority = 10000, -- make this really high so it always shows
|
||||
},
|
||||
autocmd = {
|
||||
enabled = true,
|
||||
pattern = {"*"},
|
||||
events = {"CursorHold", "CursorHoldI"}
|
||||
}
|
||||
}
|
||||
|
||||
vim.fn.sign_define('LightBulbSign', {
|
||||
text = "f",
|
||||
texthl = "LightBulbSignTxthl",
|
||||
linehl="",
|
||||
numhl="",
|
||||
})
|
18
after/plugin/todo-comments.lua
Normal file
18
after/plugin/todo-comments.lua
Normal file
@ -0,0 +1,18 @@
|
||||
local status_ok, todocomments = pcall(require, "todo-comments")
|
||||
if not status_ok then
|
||||
return
|
||||
end
|
||||
|
||||
todocomments.setup {
|
||||
keywords = {
|
||||
FIX = {
|
||||
icon = " ", -- icon used for the sign, and in search results
|
||||
},
|
||||
TODO = { icon = " ", color = "info" },
|
||||
HACK = { icon = "* ", color = "warning" },
|
||||
WARN = { icon = "! ", color = "warning", alt = { "WARNING", "XXX" } },
|
||||
PERF = { icon = " ", alt = { "OPTIM", "PERFORMANCE", "OPTIMIZE" } },
|
||||
NOTE = { icon = "i ", color = "hint", alt = { "INFO" } },
|
||||
TEST = { icon = "⏲ ", color = "test", alt = { "TESTING", "PASSED", "FAILED" } },
|
||||
},
|
||||
}
|
@ -69,43 +69,35 @@ map('n', 'gi', '<CMD>Glance implementations<CR>')
|
||||
local treesj = require('treesj') -- treesj
|
||||
map('n', '<leader>j', treesj.toggle)
|
||||
|
||||
-- telescope
|
||||
local telebuilt = require('telescope.builtin')
|
||||
local telebuilt = require('telescope.builtin') -- telescope
|
||||
map('n', '<leader>sf', telebuilt.find_files)
|
||||
map('n', '<leader>sg', telebuilt.git_files)
|
||||
map('n', '<leader>sp', function()
|
||||
telebuilt.grep_string({ search = vim.fn.input('Find string in project > ') });
|
||||
telebuilt.grep_string({ search = vim.fn.input('Find string in project > ') })
|
||||
end)
|
||||
map('n', '<leader>so', telebuilt.oldfiles)
|
||||
|
||||
-- intellitab
|
||||
local intellitab = require('intellitab')
|
||||
local intellitab = require('intellitab') -- intellitab
|
||||
map('n', '<Tab>', intellitab.indent)
|
||||
|
||||
-- undo tree
|
||||
map('n', '<leader>u', '<cmd>UndotreeToggle<CR>')
|
||||
map('n', '<leader>u', '<cmd>UndotreeToggle<CR>') -- undo tree
|
||||
map('n', '<leader>f', '<cmd>SFMToggle<CR>') -- sfm
|
||||
map('n', '<leader>b', '<cmd>JABSOpen<CR>') -- switch between previous buffers
|
||||
map('n', '<leader>tt', '<cmd>TroubleToggle<CR>') -- trouble (lsp error view)
|
||||
map('n', '<leader>tc', '<cmd>TodoTrouble<CR>') -- todo trouble
|
||||
map('n', '<C-e>', '<cmd>IconPickerYank<CR>') -- icon picker
|
||||
|
||||
-- sfm
|
||||
map('n', '<leader>f', '<cmd>SFMToggle<CR>')
|
||||
|
||||
-- dap ui
|
||||
local dapui = require('dapui')
|
||||
local dapui = require('dapui') -- dap ui
|
||||
map('n', '<leader>d', dapui.toggle)
|
||||
|
||||
-- switch between previous buffers
|
||||
map('n', '<leader>b', '<cmd>JABSOpen<CR>')
|
||||
|
||||
-- resizing buffers (toggleable)
|
||||
local smartsplits = require('smart-splits')
|
||||
local smartsplits = require('smart-splits') -- resizing buffers (toggleable)
|
||||
map('n', '<leader>r', smartsplits.start_resize_mode)
|
||||
|
||||
-- trouble (lsp error view)
|
||||
map('n', '<leader>t', '<cmd>TroubleToggle<CR>')
|
||||
-- toggle term (don't use leader key in these binds)
|
||||
map({'n', 't'}, '<C-\\>', '<cmd>ToggleTerm direction=float<CR>')
|
||||
map({'n', 't'}, '<C-g>', '<cmd>lua _glow()<CR>')
|
||||
|
||||
-- icon picker
|
||||
map('n', '<C-e>', '<cmd>IconPickerYank<CR>')
|
||||
|
||||
-- toggle term
|
||||
map('t', '<ESC>', '<C-\\><C-n>') -- make <ESC> work in terminals
|
||||
map({'n', 't'}, '<C-\\>', '<cmd>ToggleTerm size=20<CR>')
|
||||
map({'n', 't'}, '<leader>gl', '<cmd>lua _glow()<CR>')
|
||||
-- true zen
|
||||
map('n', '<leader>zf', '<cmd>lua require("true-zen.focus").toggle()<CR>')
|
||||
map('n', '<leader>zm', '<cmd>lua require("true-zen.minimalist").toggle()<CR>')
|
||||
map('n', '<leader>za', '<cmd>lua require("true-zen.ataraxis").toggle()<CR>')
|
||||
|
@ -41,3 +41,6 @@ highlight('AlphaHeader', { fg = c.blue })
|
||||
|
||||
-- fidget
|
||||
highlight('FidgetTask', { fg = c.fg })
|
||||
|
||||
-- quick fix sign
|
||||
highlight('LightBulbSignTxthl', {fg = c.bright_magenta})
|
||||
|
Reference in New Issue
Block a user