73 lines
1.8 KiB
Lua
73 lines
1.8 KiB
Lua
--[[
|
|
lvim is the global options object
|
|
|
|
Linters should be
|
|
filled in as strings with either
|
|
a global executable or a path to
|
|
an executable
|
|
|
|
Ref.:https://www.lunarvim.org/configuration/01-settings.html#example-options
|
|
]]
|
|
|
|
-- vim options
|
|
vim.opt.ignorecase = true
|
|
vim.opt.showmode = true
|
|
vim.opt.expandtab = true
|
|
vim.opt.shiftwidth = 2
|
|
vim.opt.tabstop = 2
|
|
vim.opt.number = true
|
|
vim.opt.relativenumber = false
|
|
vim.opt.wrap = true
|
|
vim.opt.termguicolors = true
|
|
|
|
-- general
|
|
lvim.log.level = "warn"
|
|
lvim.format_on_save = true
|
|
lvim.colorscheme = "gruvbox"
|
|
|
|
-- keymappings [view all the defaults by pressing <leader>Lk]
|
|
lvim.leader = "space"
|
|
lvim.keys.normal_mode["<C-s>"] = ":w<cr>"
|
|
lvim.keys.normal_mode["<C-d>"] = ":q<cr>"
|
|
lvim.keys.normal_mode["<Leader>t"] = ":ToggleTerm dir='%:p:h'<cr>"
|
|
|
|
-- After changing plugin config exit and reopen LunarVim, Run :PackerInstall :PackerCompile
|
|
lvim.builtin.alpha.active = true
|
|
lvim.builtin.alpha.mode = "startify"
|
|
lvim.builtin.lualine.style = "default"
|
|
lvim.builtin.nvimtree.setup.view.side = "left"
|
|
lvim.builtin.terminal.active = true
|
|
lvim.builtin.terminal.close_on_exit = true
|
|
lvim.builtin.terminal.direction = "horizontal"
|
|
lvim.builtin.terminal.hide_numbers = true
|
|
lvim.builtin.terminal.open_mapping = [[C-t]]
|
|
lvim.builtin.terminal.size = 15
|
|
lvim.builtin.terminal.start_in_insert = true
|
|
lvim.builtin.bufferline.active = true
|
|
|
|
-- if you don't want all the parsers change this to a table of the ones you want
|
|
lvim.builtin.treesitter.ensure_installed = {
|
|
"bash",
|
|
"c",
|
|
"dockerfile",
|
|
"go",
|
|
"javascript",
|
|
"json",
|
|
"latex",
|
|
"lua",
|
|
"make",
|
|
"python",
|
|
"typescript",
|
|
"css",
|
|
"rust",
|
|
"java",
|
|
"vim",
|
|
"vue",
|
|
"yaml",
|
|
}
|
|
lvim.builtin.treesitter.ignore_install = { "haskell" }
|
|
lvim.builtin.treesitter.highlight.enabled = true
|
|
|
|
lvim.plugins = {
|
|
{ "gruvbox-community/gruvbox" },
|
|
}
|