This commit is contained in:
veypi
2023-09-25 17:02:04 +08:00
parent 6f8d987e48
commit 4dd8cdeb49
4 changed files with 25 additions and 8 deletions
+13 -5
View File
@@ -10,14 +10,22 @@
lvim.keys.normal_mode["<F2>"] = ":NvimTreeToggle<CR>"
lvim.keys.normal_mode["q"] = ":bd<CR>"
lvim.keys.normal_mode["Q"] = ":qa!<CR>"
-- lvim.keys.normal_mode["<<leader>-[>"] = ":BufferLineCyclePrev<CR>"
lvim.keys.normal_mode["\\["] = ":BufferLineCyclePrev<CR>"
lvim.keys.normal_mode["\\]"] = ":BufferLineCycleNext<CR>"
-- lvim.builtin.which_key.mappings["\["] = ":BufferLineCyclePrev<CR>"
-- nmap <leader>[ :BufferLineCyclePrev<CR>
-- nmap <leader>] :BufferLineCycleNext<CR>
lvim.builtin.which_key.mappings["["] = {
"<cmd>BufferLineCycleNext<CR>", "Projects"
-- lvim.builtin.which_key.mappings["["] = {
-- "<cmd>BufferLineCyclePrev<CR>", "Prev buffer"
-- }
-- lvim.builtin.which_key.mappings["="] = {
-- "<cmd>BufferLineCycleNext<CR>", "next buffer"
-- }
lvim.builtin.which_key.mappings["f"] = {
"<cmd>Telescope find_files<cr>", "Find files"
}
lvim.builtin.which_key.mappings["]"] = {
"<cmd>BufferLineCyclePrev<CR>", "Projects"
lvim.builtin.which_key.mappings["t"] = {
"<cmd>Telescope live_grep<cr>", "Find word"
}
+5 -2
View File
@@ -3,10 +3,13 @@ lvim.format_on_save.enabled = true
vim.g.user = "veypi"
vim.g.email = "i@veypi.com"
vim.g.templates_directory = '~/.config/lvim/templates'
local options = {
fileencoding = "utf-8", -- the encoding written to a file
wrap = false, -- display lines as one long line
fileencoding = "utf-8", -- the encoding written to a file
textwidth = 70,
wrap = true, -- display lines as one long line
showtabline = 1, -- always show tabs
expandtab = true, -- convert tabs to spaces
+6 -1
View File
@@ -2,7 +2,12 @@ lvim.plugins = {
{
'aperezdc/vim-template',
config = function()
vim.cmd("let g:templates_directory = '~/.config/lvim/templates'")
end,
},
{
"windwp/nvim-ts-autotag",
config = function()
require("nvim-ts-autotag").setup()
end,
},
}