main
spike 2 years ago
parent 8ac4a6d4b6
commit 807381ce40

42
TODO

@ -1,42 +0,0 @@
- make line numbers easier to read in line operator mode
-INFO:using extranl ui process in neovim: check fzflua,iron.nvim
- add tag="*" to plugins that use tags
- use libmodal + whichkey ?
- gisigns: add navigation between hunks (vs fugitive ?)
- optimize git flow
- navigator icons update
- vim-bookmarks disable default keymaps and use manaul ones (keep ma ...)
- Setup telescope/fzf mappings together
- LSP C-i is tab does not allow to jump back into history
- [PLUGIN INDEA] bookmark: take notes
- show messages window outside or floating
- create a bookmark mini plugin/helper for bookmarking paths
- html filetype use pup as auto formatter formatprg (check default vim) ?
- per project lsp settings
see https://www.reddit.com/r/neovim/comments/opipij/guide_tips_and_tricks_to_reduce_startup_and/
- add/read language docs in vim
- vim.diagnostics.hide()/show() /
- create toggle diagnostics that overrides vim diagnostic show handler
- [navigator] use colors for codelens icons
- [navigator] remap C-k keymap
- [navigator] neovim diagnositc toggle (use hide() instead of disable)
- [navigator] check codelens icons
- [navigator] disable diagnostic on startup
- dynamic C-x: if number default or close window
- load custom/init.lua (autocommands) as vimscript file ?
- install neorg (neovim org mode)
- dynamic :w!! (daos or sudo)
[x] [navigator] fix 'gi' keymap overriden by navigator (use space leader)
- welcome screen (use mini)
- incorporate changes in nvchad_ui to override
- [x]nvim C-p should not work in ft=qf
- [x] set neovim shell to bash/sh for faster commands (fish is slow)
- [x] yank until end of line $ mapping automatic with Y
- [x] remove registers from which-key plugin
-fix: problem with auto paused navigators
- [x] fix color/icon of status line diagnostics to match navigator
-[x] pin all plugins
- [x] autocommand move current directory when move to new window
- [done]fix C-k expand snippet - it was alacritty overriding C-k
- [done] install vim hardway .. ? gajim

File diff suppressed because it is too large Load Diff

@ -29,10 +29,10 @@ opt.rulerformat = "%30(%=:b%n%y%m%r%w %l,%c%V %P%)" -- NvChad has custom ruler !
-- Indenting
opt.expandtab = true -- Tabs are spaces, not tabs
opt.shiftwidth = 2 -- use indents of 2 spaces
opt.shiftwidth = 4 -- use indents of 2 spaces
opt.smartindent = true -- smart indent when starting new lines
opt.tabstop = 2 -- number of spaces when tab pressed
opt.softtabstop = 2 -- Let backspace delete indent
opt.tabstop = 4 -- number of spaces when tab pressed
opt.softtabstop = 4 -- Let backspace delete indent
-- http://vim.wikia.com/wiki/Converting_tabs_to_spaces
opt.tabpagemax = 10
@ -78,9 +78,11 @@ opt.formatoptions:append("b") -- Auto-wrap text based on textwidt
opt.matchpairs:append("<:>")
opt.guicursor = {"n-v-c-sm:block-blinkwait50-blinkon200-blinkoff200", "i-ci-ve:ver25", "r-cr-o:hor20"}
-- Lines to scroll when cursor leaves screen
opt.scrolljump=5
opt.scrolloff=3
opt.scrolloff=2
-- Allow :find to work on all subdirectories
-- this only works when the original dir path is not changed
@ -99,6 +101,17 @@ opt.signcolumn = "yes"
opt.splitbelow = true
opt.splitright = true
opt.termguicolors = true
-- if vim.fn.exists("+termguicolors") then
-- vim.go.t_8f = "<Esc>[38:2:%lu:%lu:%lum"
-- vim.go.t_8b = "<Esc>[48:2:%lu:%lu:%lum"
-- end
if vim.g.neovide then
opt.g.neovide_cursor_trail_size=0.3
opt.g.neovide_cursor_animation_length=0.10
opt.guifont = "ProFontIIx Nerd Font Mono:h10"
end
opt.timeoutlen = 400
opt.undofile = true

@ -31,9 +31,9 @@ local config = {
{ key = '<Leader>gT', func = require('navigator.treesitter').bufs_ts, desc = 'lsp bufs_ts' },
{ key = '<Leader>ct', func = require('navigator.ctags').ctags, desc = 'lsp ctags' },
{ key = 'K', func = vim.lsp.buf.hover, desc = 'lsp hover' },
{ key = '<C-a>', mode = 'n', func = require('navigator.codeAction').code_action, desc = 'lsp code_action' },
{ key = '<M-a>', mode = 'n', func = require('navigator.codeAction').code_action, desc = 'lsp code_action' },
{
key = '<C-a>',
key = '<M-a>',
mode = 'v',
func = require('navigator.codeAction').range_code_action,
desc = 'lsp range_code_action',

@ -9,6 +9,7 @@ M = {}
local config = {
keywords = {
["_TODO"] = { color = "warning"},
["LEARN"] = { color = "hint" },
},
colors = {
info = {"#2563EB"},

@ -30,7 +30,7 @@ return {
},
incremental_selection = {
enable = false,
enable = true,
keymaps = {
init_selection = "<CR>",
node_incremental = "<Tab>",
@ -39,14 +39,15 @@ return {
}
},
textsubjects = {
enable = true,
prev_selection = "<Tab>",
keymaps = {
["<CR>"] = "textsubjects-smart", -- works in visual mode
}
},
-- textsubjects = {
-- enable = true,
-- prev_selection = "<Tab>",
-- keymaps = {
-- ["<CR>"] = "textsubjects-smart", -- works in visual mode
-- }
-- },
--
rainbow = {
enable = true,
extended_mode = true,
@ -84,20 +85,18 @@ return {
goto_next_start = {
["]]"] = "@function.outer",
["]m"] = "@class.outer"
["]C"] = "@class.outer",
},
goto_next_end = {
["]["] = "@function.outer",
["]M"] = "@class.outer"
},
goto_previous_start = {
["[["] = "@function.outer",
["[m"] = "@class.outer"
["[C"] = "@class.outer"
},
goto_previous_end = {
["[]"] = "@function.outer",
["[M"] = "@class.outer"
}
},

@ -162,7 +162,7 @@ return {
},
["rcarriga/nvim-dap-ui"] = {
lock = true,
tag = "*",
after = "nvim-dap",
},
@ -186,6 +186,8 @@ return {
["nvim-telescope/telescope.nvim"] = {
-- lock = true,
after = "vim-hardtime",
tag = "*",
disable = false,
},
@ -219,8 +221,23 @@ return {
end
},-- }}}
-- Theme customization
["uga-rosa/ccc.nvim"] = {
commit = "427471b",
cmd = {"Ccc*", "<Plug>(ccc-insert)"},
setup = function()
require("core.utils").load_mappings "ccc"
end,
config = function()
require("ccc").setup({})
end
},
-- navigation / jumps
-- ["justinmk/vim-sneak"] = {
-- lock = true,
-- keys = {"s", "S"},
-- },
["ggandor/leap.nvim"] = {-- {{{
config = function()
@ -228,6 +245,11 @@ return {
end
},-- }}}
["christoomey/vim-tmux-navigator"] = {
cond = function()
return vim.env.TMUX ~= nil
end
},
-- Job management (use nvim startjob )
-- Run async commands (make & errors)
@ -259,12 +281,6 @@ return {
-- end
-- },
-- text formatting and navigation
-- ["justinmk/vim-sneak"] = {
-- lock = true,
-- keys = {"s", "S"},
-- },
--
-- Misc / General plugins
@ -288,14 +304,25 @@ return {
-- get rid of bad habits
["takac/vim-hardtime"] = {
-- keys = { "h", "j", "k", "l" },
setup = function()
vim.g.hardtime_default_on = 1
vim.g.hardtime_showmsg = 1
vim.g.list_of_normal_keys = {"h","j","k","l"}
vim.g.list_of_visual_keys = {"h","j","k","l"}
vim.g.hardtime_ignore_buffer_patterns = { "help", "NERD.*" }
vim.g.hardtime_maxcount = 2
vim.g.hardtime_ignore_buffer_patterns = {
"qf*",
"help",
"NERD.*",
"netrw",
"TelescopePrompt",
"fugitive",
}
vim.g.hardtime_maxcount = 2
end,
config = function()
vim.cmd("HardTimeOn")
end
},

@ -26,7 +26,7 @@ local plugins = {
},
["NvChad/ui"] = {
lock = true,
lock = false,
after = "base46",
config = function()
require("plugins.configs.others").nvchad_ui()

@ -56,6 +56,24 @@ local config = {
end,
desc = "[dap] run to curosr"
},
W = {
rhs = function()
require("dapui").float_element('watches')
end,
desc = '[dapui] float watches'
},
B = {
rhs = function()
require("dapui").float_element('breakpoints')
end,
desc = '[dapui] float breakpoints'
},
O = {
rhs = function()
require("dapui").float_element('scopes')
end,
desc = '[dapui] float scopes'
},
["Q"] = {
rhs = function()
M.layer:exit()

@ -4,7 +4,6 @@ local augroup = vim.api.nvim_create_augroup
local autocmd = vim.api.nvim_create_autocmd
local M = {}
local augroupname = "spike.go"
-- Navigator custom on_attach for golang
@ -17,16 +16,17 @@ function M.gopls_onattach(client, bufnr)
return
end
augroup(augroupname, {})
autocmd({"BufWritePre", "InsertLeave"}, {
group = augroupname,
group = augroup(augroupname, {clear = true}),
buffer = bufnr,
callback = function()
goformat.goimport()
end
})
require("core.utils").load_mappings "golang"
end
return M

Loading…
Cancel
Save