refactor/clean

main
spike 2 years ago
parent 89e572e2ea
commit bbaa133a34

@ -72,40 +72,57 @@ M.ui = {
M.plugins = { M.plugins = {
user = require "custom.plugins", user = require "custom.plugins",
override = { 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"] = { ["NvChad/ui"] = {
-- tabufline = { -- tabufline = {
-- lazyload = false, -- lazyload = false,
-- }, -- },
statusline = { statusline = {
overriden_modules = function() overriden_modules = function()
return require "custom.plugins.nvchadui" return require "custom.plugins.nvchadui"
end end
} }
}, },
["nvim-treesitter/nvim-treesitter"] = { ["windwp/nvim-autopairs"] = {
ensure_installed = { disable_filetype = {
"lua", "TelescopePrompt",
"go", "vim",
"rust", "guihua",
"fish", "guihua_rust",
"bash", "clap_input"
"python", }
"c", },
"haskell", ["nvim-treesitter/nvim-treesitter"] = {
"javascript", ensure_installed = {
"html", "lua",
"markdown", "go",
"markdown_inline", "rust",
"make", "fish",
"sql", "bash",
"yaml", "python",
"toml", "c",
"vue", "haskell",
} "javascript",
}, "html",
} "markdown",
"markdown_inline",
"make",
"sql",
"yaml",
"toml",
"vue",
}
},
}
} }
return M 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