Added nvchad custom config.

This commit is contained in:
NerdRat 2022-09-22 13:39:16 -05:00
parent c8c650c5eb
commit abe45fb816
Signed by: NerdRat
GPG Key ID: 2FF292A70A383B0B
4 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,13 @@
local M = {}
M.ui = {
theme_toggle = { "onedark", "one_light" },
theme = "onedark",
}
M.plugins = require "custom.plugins"
-- check core.mappings for table structure
M.mappings = require "custom.mappings"
return M

View File

@ -0,0 +1,7 @@
local autocmd = vim.api.nvim_create_autocmd
-- Auto resize panes when resizing nvim window
-- autocmd("VimResized", {
-- pattern = "*",
-- command = "tabdo wincmd =",
-- })

View File

@ -0,0 +1,14 @@
local M = {}
M.general = {
n = {
[";"] = { ":", "Command mode", opts = { nowait = true } },
["<leader>qq"] = { ":q <CR>", "Quit the current window" },
["<leader>fn"] = { ":NnnPicker <CR>", "(n³): Pick file in a floating window"},
["<leader>qQ"] = { ":wqall <CR>", "Save all and quit nvim without complain" },
},
}
-- more keybinds!
return M

View File

@ -0,0 +1,31 @@
return {
-- enables dashboard
["goolord/alpha-nvim"] = { disable = false },
-- enables key feedback
["folke/which-key.nvim"] = { disable = false },
-- enables the n³ file browser
["luukvbaal/nnn.nvim"] = {
config = function()
require("nnn").setup()
end
},
-- fuck treesitter devs
["alaviss/nim.nvim"] = {
disable = false,
ft = { "nim", "nimble" },
opt = true,
config = function ()
local present, nim_nvim = pcall(require, "nim.nvim")
if present then
nim_nvim.setup()
end
end,
},
-- remove plugin
-- ["hrsh7th/cmp-path"] = false,
}