* refactor(cmp) : use cmp module from ui repo https://github.com/NvChad/ui/commit/c4576d8b5bbb6305de53ec017cd6ffad863c98ee I moved it to the ui repo so non nvchad users could achieve the CMP look from NvChad * remove: <leader>cc blankline mapping * replace: nvim-colorizer plugin with ui.colorify (BREAKING CHANGE) https://github.com/NvChad/ui/blob/v2.5/lua/nvconfig.lua#L106 * misc: load nvchad module in config func of ui instead of plugin/ in ui repo * clean up * remove un-needed configs/lazy_nvim.lua file * rm gitsigns mappings as it gets frustrating for users to override them * rm un-needed options var in plugin configs * add branch name for ui plugin * trim some loc! * feat: use modern theme picker for <leader>th * feat: add volt plugins
57 lines
1.3 KiB
Lua
57 lines
1.3 KiB
Lua
local opt = vim.opt
|
|
local o = vim.o
|
|
local g = vim.g
|
|
|
|
-------------------------------------- options ------------------------------------------
|
|
o.laststatus = 3
|
|
o.showmode = false
|
|
|
|
o.clipboard = "unnamedplus"
|
|
o.cursorline = true
|
|
o.cursorlineopt = "number"
|
|
|
|
-- Indenting
|
|
o.expandtab = true
|
|
o.shiftwidth = 2
|
|
o.smartindent = true
|
|
o.tabstop = 2
|
|
o.softtabstop = 2
|
|
|
|
opt.fillchars = { eob = " " }
|
|
o.ignorecase = true
|
|
o.smartcase = true
|
|
o.mouse = "a"
|
|
|
|
-- Numbers
|
|
o.number = true
|
|
o.numberwidth = 2
|
|
o.ruler = false
|
|
|
|
-- disable nvim intro
|
|
opt.shortmess:append "sI"
|
|
|
|
o.signcolumn = "yes"
|
|
o.splitbelow = true
|
|
o.splitright = true
|
|
o.timeoutlen = 400
|
|
o.undofile = true
|
|
|
|
-- interval for writing swap file to disk, also used by gitsigns
|
|
o.updatetime = 250
|
|
|
|
-- go to previous/next line with h,l,left arrow and right arrow
|
|
-- when cursor reaches end/beginning of line
|
|
opt.whichwrap:append "<>[]hl"
|
|
|
|
-- disable some default providers
|
|
g.loaded_node_provider = 0
|
|
g.loaded_python3_provider = 0
|
|
g.loaded_perl_provider = 0
|
|
g.loaded_ruby_provider = 0
|
|
|
|
-- add binaries installed by mason.nvim to path
|
|
local is_windows = vim.fn.has "win32" ~= 0
|
|
local sep = is_windows and "\\" or "/"
|
|
local delim = is_windows and ";" or ":"
|
|
vim.env.PATH = table.concat({ vim.fn.stdpath "data", "mason", "bin" }, sep) .. delim .. vim.env.PATH
|