Replace config.lua
This commit is contained in:
parent
7195ba0622
commit
a487268113
22
config.lua
22
config.lua
|
|
@ -32,6 +32,19 @@ lvim.plugins = {
|
|||
require('symbols-outline').setup()
|
||||
end
|
||||
},
|
||||
{
|
||||
"Pocco81/auto-save.nvim",
|
||||
config = function()
|
||||
require("auto-save").setup()
|
||||
end,
|
||||
},
|
||||
{
|
||||
"tamton-aquib/duck.nvim",
|
||||
config = function ()
|
||||
vim.keymap.set('n', '<leader>dn', function () require("duck").hatch("🦀", 10) end, {})
|
||||
vim.keymap.set('n', '<leader>dk', function () require("duck").cook() end, {})
|
||||
end
|
||||
},
|
||||
}
|
||||
|
||||
lvim.colorscheme = "slate"
|
||||
|
|
@ -52,6 +65,9 @@ lvim.autocommands = {
|
|||
vim.api.nvim_set_hl(0, "Function", { fg = "#025fb0", underline = false, bold = false })
|
||||
vim.api.nvim_set_hl(0, "@lsp.typemod.variable.constant.rust", { fg = "#00ff00", underline = false, bold = false })
|
||||
vim.api.nvim_set_hl(0, "@lsp.type.interface", {fg = "#a402b0", bold = true, underline=false})
|
||||
vim.api.nvim_set_hl(0, "Comment", {fg = "#989898", bold = false, underline=false})
|
||||
vim.api.nvim_set_hl(0, "NvimTreeGitDirty", {fg = "#ffaa00", bold = false, underline=false})
|
||||
vim.api.nvim_set_hl(0, "@string.escape", {fg = "#aa00ff", bold = false, underline=false})
|
||||
-- vim.api.nvim_set_hl(0, "Operator", {fg = "#ffffff", bold = false, underline=false})
|
||||
end,
|
||||
},
|
||||
|
|
@ -60,7 +76,11 @@ lvim.autocommands = {
|
|||
|
||||
vim.cmd.set("rnu")
|
||||
lvim.keys.normal_mode["<C-s>"] = ":w<Enter>"
|
||||
lvim.keys.normal_mode["Q"] = ":wq<Enter>"
|
||||
lvim.keys.normal_mode["Q"] = ":wqa<Enter>"
|
||||
lvim.keys.normal_mode["<leader>t"] = ":SymbolsOutline<Enter>"
|
||||
lvim.keys.normal_mode[";"] = "$a;<ESC>"
|
||||
lvim.keys.normal_mode["<leader>Lpr"] = ":n ~/vex/roberts/src/main.rs<Enter>"
|
||||
lvim.keys.normal_mode["<leader>Lpt"] = ":n ~/vex/patch/src/lib.rs<Enter>"
|
||||
|
||||
lvim.builtin.treesitter.rainbow.enable = true
|
||||
require("duck").hatch("🦀", 10);
|
||||
|
|
|
|||
Loading…
Reference in New Issue