|
|
@ -1,13 +1,21 @@
|
|
|
|
vim.opt.list = true
|
|
|
|
|
|
|
|
vim.opt.listchars = "tab:>-,trail:-"
|
|
|
|
|
|
|
|
vim.opt.mouse = ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- general
|
|
|
|
-- general
|
|
|
|
lvim.log.level = "warn"
|
|
|
|
lvim.log.level = "warn"
|
|
|
|
lvim.format_on_save = true
|
|
|
|
lvim.format_on_save = true
|
|
|
|
-- vim.o.background = "light"
|
|
|
|
-- vim.o.background = "light"
|
|
|
|
lvim.colorscheme = "base16-one-light"
|
|
|
|
lvim.colorscheme = "base16-one-light"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- keymappings [view all the defaults by pressing <leader>Lk]
|
|
|
|
|
|
|
|
lvim.leader = "space"
|
|
|
|
|
|
|
|
-- add your own keymapping
|
|
|
|
|
|
|
|
-- lvim.keys.normal_mode["<C-s>"] = ":w<cr>"
|
|
|
|
|
|
|
|
-- unmap a default keymapping
|
|
|
|
|
|
|
|
-- lvim.keys.normal_mode["<C-Up>"] = false
|
|
|
|
|
|
|
|
-- edit a default keymapping
|
|
|
|
|
|
|
|
-- lvim.keys.normal_mode["<C-q>"] = ":q<cr>"
|
|
|
|
|
|
|
|
lvim.keys.normal_mode["<Tab>"] = ":bprevious<cr>"
|
|
|
|
|
|
|
|
lvim.keys.normal_mode["<S-Tab>"] = ":bnext<cr>"
|
|
|
|
|
|
|
|
lvim.keys.normal_mode["<F5>"] = ":pastetoggle<cr>"
|
|
|
|
|
|
|
|
|
|
|
|
vim.cmd [[
|
|
|
|
vim.cmd [[
|
|
|
|
" Relative numbering
|
|
|
|
" Relative numbering
|
|
|
|
function! NumberToggle()
|
|
|
|
function! NumberToggle()
|
|
|
@ -18,16 +26,10 @@ function! NumberToggle()
|
|
|
|
set rnu
|
|
|
|
set rnu
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endfunc
|
|
|
|
endfunc
|
|
|
|
]]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- keymappings [view all the defaults by pressing <leader>Lk]
|
|
|
|
" Toggle between normal and relative numbering.
|
|
|
|
lvim.leader = "space"
|
|
|
|
noremap <F6> :call NumberToggle()<cr>
|
|
|
|
lvim.keys.normal_mode["<F2>"] = ":bprevious<cr>"
|
|
|
|
]]
|
|
|
|
lvim.keys.normal_mode["<F3>"] = ":bnext<cr>"
|
|
|
|
|
|
|
|
lvim.keys.normal_mode["<F5>"] = ":pastetoggle<cr>"
|
|
|
|
|
|
|
|
lvim.keys.normal_mode["<F6>"] = ":call NumberToggle()<cr>"
|
|
|
|
|
|
|
|
lvim.keys.normal_mode["<F7>"] = ":lua vim.lsp.stop_client(vim.lsp.get_active_clients())<cr>"
|
|
|
|
|
|
|
|
lvim.keys.normal_mode["<leader>g"] = ":Telescope live_grep<cr>"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Change Telescope navigation to use j and k for navigation and n and p for history in both input and normal mode.
|
|
|
|
-- Change Telescope navigation to use j and k for navigation and n and p for history in both input and normal mode.
|
|
|
|
-- we use protected-mode (pcall) just in case the plugin wasn't loaded yet.
|
|
|
|
-- we use protected-mode (pcall) just in case the plugin wasn't loaded yet.
|
|
|
@ -61,6 +63,7 @@ lvim.keys.normal_mode["<leader>g"] = ":Telescope live_grep<cr>"
|
|
|
|
|
|
|
|
|
|
|
|
-- TODO: User Config for predefined plugins
|
|
|
|
-- TODO: User Config for predefined plugins
|
|
|
|
-- After changing plugin config exit and reopen LunarVim, Run :PackerInstall :PackerCompile
|
|
|
|
-- After changing plugin config exit and reopen LunarVim, Run :PackerInstall :PackerCompile
|
|
|
|
|
|
|
|
lvim.builtin.dashboard.active = true
|
|
|
|
lvim.builtin.notify.active = true
|
|
|
|
lvim.builtin.notify.active = true
|
|
|
|
lvim.builtin.terminal.active = true
|
|
|
|
lvim.builtin.terminal.active = true
|
|
|
|
lvim.builtin.nvimtree.setup.view.side = "left"
|
|
|
|
lvim.builtin.nvimtree.setup.view.side = "left"
|
|
|
@ -139,20 +142,9 @@ lvim.builtin.treesitter.highlight.enabled = true
|
|
|
|
|
|
|
|
|
|
|
|
-- Additional Plugins
|
|
|
|
-- Additional Plugins
|
|
|
|
lvim.plugins = {
|
|
|
|
lvim.plugins = {
|
|
|
|
{ "RRethy/nvim-base16" },
|
|
|
|
{"RRethy/nvim-base16"},
|
|
|
|
{ "rebelot/kanagawa.nvim" },
|
|
|
|
{"rebelot/kanagawa.nvim"},
|
|
|
|
{ "LunarVim/Colorschemes" },
|
|
|
|
{"LunarVim/Colorschemes"},
|
|
|
|
{ "nathom/filetype.nvim" },
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
'wfxr/minimap.vim',
|
|
|
|
|
|
|
|
run = "cargo install --locked code-minimap",
|
|
|
|
|
|
|
|
-- cmd = {"Minimap", "MinimapClose", "MinimapToggle", "MinimapRefresh", "MinimapUpdateHighlight"},
|
|
|
|
|
|
|
|
config = function()
|
|
|
|
|
|
|
|
vim.cmd("let g:minimap_width = 10")
|
|
|
|
|
|
|
|
vim.cmd("let g:minimap_auto_start = 1")
|
|
|
|
|
|
|
|
vim.cmd("let g:minimap_auto_start_win_enter = 1")
|
|
|
|
|
|
|
|
end,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
-- {"folke/tokyonight.nvim"},
|
|
|
|
-- {"folke/tokyonight.nvim"},
|
|
|
|
-- {
|
|
|
|
-- {
|
|
|
@ -167,14 +159,5 @@ lvim.plugins = {
|
|
|
|
-- }
|
|
|
|
-- }
|
|
|
|
lvim.autocommands.custom_groups = {
|
|
|
|
lvim.autocommands.custom_groups = {
|
|
|
|
{ "FileType", "make", "set noexpandtab shiftwidth=8 softtabstop=0" },
|
|
|
|
{ "FileType", "make", "set noexpandtab shiftwidth=8 softtabstop=0" },
|
|
|
|
{ "FileType", "justfile", "set expandtab tabstop=4 shiftwidth=4 softtabstop=4" }
|
|
|
|
{ "BufNewFile,BufRead", "justfile", "setf automake expandtab shiftwidth=8 softtabstop=0" },
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
local filetype = require("filetype")
|
|
|
|
|
|
|
|
filetype.setup({
|
|
|
|
|
|
|
|
overrides = {
|
|
|
|
|
|
|
|
literal = {
|
|
|
|
|
|
|
|
["justfile.nix"] = "just",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|