Added nvchad custom config.
This commit is contained in:
parent
c8c650c5eb
commit
abe45fb816
|
@ -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
|
|
@ -0,0 +1,7 @@
|
|||
local autocmd = vim.api.nvim_create_autocmd
|
||||
|
||||
-- Auto resize panes when resizing nvim window
|
||||
-- autocmd("VimResized", {
|
||||
-- pattern = "*",
|
||||
-- command = "tabdo wincmd =",
|
||||
-- })
|
|
@ -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
|
|
@ -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,
|
||||
}
|
Loading…
Reference in New Issue