clean config | fix (#1225) (#1226)

This commit is contained in:
siduck
2022-06-18 09:57:17 +05:30
parent 349ee96a20
commit 9bca3eacae
16 changed files with 69 additions and 165 deletions

View File

@@ -1,4 +1,4 @@
-- n, v, i are mode names
-- n, v, i, tare mode names
local function termcodes(str)
return vim.api.nvim_replace_termcodes(str, true, true, true)
@@ -147,7 +147,7 @@ M.lspconfig = {
["<leader>ra"] = {
function()
require("ui.renamer").open()
require("nvchad.ui.renamer").open()
end,
" lsp rename",
},
@@ -342,4 +342,24 @@ M.whichkey = {
},
}
M.blankline = {
n = {
["<leader>bc"] = {
function()
local ok, start = require("indent_blankline.utils").get_current_context(
vim.g.indent_blankline_context_patterns,
vim.g.indent_blankline_use_treesitter_scope
)
if ok then
vim.api.nvim_win_set_cursor(vim.api.nvim_get_current_win(), { start, 0 })
vim.cmd [[normal! _]]
end
end,
" Jump to current_context",
},
},
}
return M