Replace config.lua

This commit is contained in:
A_train63 2023-09-05 21:36:24 +00:00
parent 7195ba0622
commit a487268113
No known key found for this signature in database
1 changed files with 21 additions and 1 deletions

View File

@ -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);