updated some configs
This commit is contained in:
@@ -10,33 +10,33 @@ end
|
|||||||
|
|
||||||
-- General
|
-- General
|
||||||
opt.clipboard = "unnamedplus" -- Sync with system clipboard
|
opt.clipboard = "unnamedplus" -- Sync with system clipboard
|
||||||
opt.confirm = true -- Confirm before closing unsaved buffer
|
opt.confirm = true -- Confirm before closing unsaved buffer
|
||||||
opt.cursorline = true -- Highlight current line
|
opt.cursorline = true -- Highlight current line
|
||||||
opt.mouse = "a" -- Enable mouse
|
opt.mouse = "a" -- Enable mouse
|
||||||
opt.number = true -- Show line numbers
|
opt.number = true -- Show line numbers
|
||||||
opt.relativenumber = true -- Relative line numbers
|
opt.relativenumber = true -- Relative line numbers
|
||||||
opt.signcolumn = "yes" -- Always show sign column
|
opt.signcolumn = "yes" -- Always show sign column
|
||||||
opt.termguicolors = true -- True color support
|
opt.termguicolors = true -- True color support
|
||||||
opt.wrap = false -- Disable line wrap
|
opt.wrap = true -- Enable line wrap
|
||||||
|
|
||||||
-- Indentation
|
-- Indentation
|
||||||
opt.expandtab = true -- Use spaces instead of tabs
|
opt.expandtab = true -- Use spaces instead of tabs
|
||||||
opt.shiftwidth = 2 -- Size of indent
|
opt.shiftwidth = 2 -- Size of indent
|
||||||
opt.tabstop = 2 -- Number of spaces tabs count for
|
opt.tabstop = 4 -- Number of spaces tabs count for
|
||||||
opt.smartindent = true -- Smart indentation
|
opt.smartindent = true -- Smart indentation
|
||||||
|
|
||||||
-- Search
|
-- Search
|
||||||
opt.ignorecase = true -- Ignore case
|
opt.ignorecase = true -- Ignore case
|
||||||
opt.smartcase = true -- Don't ignore case with capitals
|
opt.smartcase = true -- Don't ignore case with capitals
|
||||||
opt.hlsearch = true -- Highlight search results
|
opt.hlsearch = true -- Highlight search results
|
||||||
opt.incsearch = true -- Show search results as you type
|
opt.incsearch = true -- Show search results as you type
|
||||||
|
|
||||||
-- Split behavior
|
-- Split behavior
|
||||||
opt.splitbelow = true -- Put new windows below current
|
opt.splitbelow = true -- Put new windows below current
|
||||||
opt.splitright = true -- Put new windows right of current
|
opt.splitright = true -- Put new windows right of current
|
||||||
|
|
||||||
-- Undo
|
-- Undo
|
||||||
opt.undofile = true -- Persistent undo
|
opt.undofile = true -- Persistent undo
|
||||||
opt.undolevels = 10000 -- Maximum undo levels
|
opt.undolevels = 10000 -- Maximum undo levels
|
||||||
|
|
||||||
-- Performance
|
-- Performance
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ return {
|
|||||||
-- Go
|
-- Go
|
||||||
gopls = {
|
gopls = {
|
||||||
-- Root detection: find go.work first, then go.mod, then git root
|
-- Root detection: find go.work first, then go.mod, then git root
|
||||||
-- root_dir = make_root_detector({ "go.work", "go.mod" }),
|
root_dir = make_root_detector({ "go.work", "go.mod" }),
|
||||||
settings = {
|
settings = {
|
||||||
gopls = {
|
gopls = {
|
||||||
gofumpt = true,
|
gofumpt = true,
|
||||||
|
|||||||
Reference in New Issue
Block a user