refactor/clean

main
spike 2 years ago
parent 89e572e2ea
commit bbaa133a34

@ -72,40 +72,57 @@ M.ui = {
M.plugins = {
user = require "custom.plugins",
override = {
["folke/which-key.nvim"] = {
triggers_blacklist = {
-- list of mode / prefixes that should never be hooked by WhichKey
i = { "j", "k" },
v = { "j", "k" },
},
},
["NvChad/ui"] = {
-- tabufline = {
-- lazyload = false,
-- },
statusline = {
overriden_modules = function()
return require "custom.plugins.nvchadui"
end
}
-- lazyload = false,
-- },
statusline = {
overriden_modules = function()
return require "custom.plugins.nvchadui"
end
}
},
["nvim-treesitter/nvim-treesitter"] = {
ensure_installed = {
"lua",
"go",
"rust",
"fish",
"bash",
"python",
"c",
"haskell",
"javascript",
"html",
"markdown",
"markdown_inline",
"make",
"sql",
"yaml",
"toml",
"vue",
}
},
}
},
["windwp/nvim-autopairs"] = {
disable_filetype = {
"TelescopePrompt",
"vim",
"guihua",
"guihua_rust",
"clap_input"
}
},
["nvim-treesitter/nvim-treesitter"] = {
ensure_installed = {
"lua",
"go",
"rust",
"fish",
"bash",
"python",
"c",
"haskell",
"javascript",
"html",
"markdown",
"markdown_inline",
"make",
"sql",
"yaml",
"toml",
"vue",
}
},
}
}
return M

@ -1,24 +0,0 @@
local M = {}
M.set_mappings = function ()
vim.cmd [[
nnoremap <leader>I :tab Info<CR>
augroup INFO
au!
au FileType info nnoremap i <NOP>
au FileType info nmap <buffer> <Up> <Plug>(InfoUp)
au FileType info nmap <buffer> iu <Plug>(InfoUp)
au FileType info nmap <buffer> <Down> <Plug>(InfoMenu)
au FileType info nmap <buffer> im <Plug>(InfoMenu)
au FileType info nmap <buffer> <C-F> <Plug>(InfoFollow)
au FileType info nmap <buffer> if <Plug>(InfoFollow)
au FileType info nmap <buffer> <Right> <Plug>(InfoNext)
au FileType info nmap <buffer> in <Plug>(InfoNext)
au FileType info nmap <buffer> <Left> <Plug>(InfoPrev)
au FileType info nmap <buffer> ip <Plug>(InfoPrev)
au FileType info nmap <buffer> ig <Plug>(InfoGoto)
augroup END
]]
end
return M
Loading…
Cancel
Save