up lvim config

This commit is contained in:
Jeff Lance 2023-04-21 20:00:37 +02:00
parent 1926897c8d
commit a344850655

View File

@ -30,6 +30,8 @@ lvim.leader = ";"
lvim.keys.insert_mode[";;"] = "<Esc>" lvim.keys.insert_mode[";;"] = "<Esc>"
lvim.keys.normal_mode["<C-s>"] = ":w<CR>" lvim.keys.normal_mode["<C-s>"] = ":w<CR>"
lvim.keys.normal_mode["<C-r>"] = ":redo<CR>"
lvim.keys.normal_mode["<C-u>"] = ":undo<CR>"
lvim.keys.normal_mode["<C-[>"] = "<<" lvim.keys.normal_mode["<C-[>"] = "<<"
lvim.keys.normal_mode["<C-]>"] = ">>" lvim.keys.normal_mode["<C-]>"] = ">>"
@ -98,6 +100,7 @@ lvim.builtin.treesitter.ensure_installed = {
"rust", "rust",
"java", "java",
"yaml", "yaml",
"zsh",
} }
lvim.builtin.treesitter.ignore_install = { "haskell" } lvim.builtin.treesitter.ignore_install = { "haskell" }
@ -267,7 +270,9 @@ lvim.plugins = {
-- vim-surround -- vim-surround
{ {
'tpope/vim-surround', 'tpope/vim-surround',
config = function()
vim.o.timeoutlen = 500
end
-- make sure to change the value of `timeoutlen` if it's not triggering correctly, see https://github.com/tpope/vim-surround/issues/117 -- make sure to change the value of `timeoutlen` if it's not triggering correctly, see https://github.com/tpope/vim-surround/issues/117
-- setup = function() -- setup = function()
-- vim.o.timeoutlen = 500 -- vim.o.timeoutlen = 500
@ -307,7 +312,7 @@ lvim.plugins = {
}), }),
}, },
symbols = { symbols = {
encode = map.gen_encode_symbols.dot('4x2'), encode = map.gen_encode_symbols.dot('2x1'),
}, },
window = { window = {
side = 'right', side = 'right',
@ -334,33 +339,33 @@ lvim.plugins = {
-- --
-- minimap view -- minimap view
-- lvim.autocommands = { lvim.autocommands = {
-- { {
-- {"BufEnter", "Filetype"}, {"BufEnter", "Filetype"},
-- { {
-- desc = "Open mini.map and exclude some filetypes", desc = "Open mini.map and exclude some filetypes",
-- pattern = { "*" }, pattern = { "*" },
-- callback = function() callback = function()
-- local exclude_ft = { local exclude_ft = {
-- "qf", "qf",
-- "NvimTree", "NvimTree",
-- "toggleterm", "toggleterm",
-- "TelescopePrompt", "TelescopePrompt",
-- "alpha", "alpha",
-- "netrw", "netrw",
-- } }
-- local map = require('mini.map') local map = require('mini.map')
-- if vim.tbl_contains(exclude_ft, vim.o.filetype) then if vim.tbl_contains(exclude_ft, vim.o.filetype) then
-- vim.b.minimap_disable = true vim.b.minimap_disable = true
-- map.close() map.close()
-- elseif vim.o.buftype == "" then elseif vim.o.buftype == "" then
-- map.open() map.open()
-- end end
-- end, end,
-- }, },
-- }, },
-- } }
-- wrap mode for json files -- wrap mode for json files
vim.api.nvim_create_autocmd("BufEnter", { vim.api.nvim_create_autocmd("BufEnter", {