Wed, 28 Aug 2024 04:44:05 -0500
add assign types gopls hint too
1014 | 1 | vim.g.mapleader = "\\" |
2 | vim.g.maplocalleader = "\\" | |
3 | ||
4 | local o = vim.opt | |
5 | ||
6 | -- Editing | |
7 | o.expandtab = true | |
8 | o.shiftround = true | |
9 | o.shiftwidth = 2 | |
1164
a8b6384c8738
increase formatexpr timeout
Meredith Howard <mhoward@roomag.org>
parents:
1163
diff
changeset
|
10 | o.formatexpr = "v:lua.require'conform'.formatexpr({'timeout_ms':4000})" |
1014 | 11 | |
12 | -- Display | |
13 | o.breakindent = true | |
14 | o.breakindentopt = "min:66,shift:2" | |
1026 | 15 | o.conceallevel = 3 |
1014 | 16 | o.diffopt:append("algorithm:patience") |
17 | o.fillchars = "fold: ,vert:│" | |
18 | o.linebreak = true | |
19 | o.listchars = "tab:⇥·,trail:◼,nbsp:◻,extends:»,precedes:«" | |
1039
91900ecf0e8c
Add gui (fvim) settings
Meredith Howard <mhoward@roomag.org>
parents:
1026
diff
changeset
|
20 | o.number = false |
1026 | 21 | o.pumheight = 10 |
1014 | 22 | o.showbreak = "» " |
23 | o.termguicolors = true | |
24 | o.signcolumn = "number" | |
1026 | 25 | o.winminwidth = 5 |
1014 | 26 | |
27 | -- Behavior | |
28 | o.autowriteall = true | |
1015 | 29 | o.backup = true |
1064 | 30 | o.completeopt = { "menu", "menuone", "noselect" } |
1025 | 31 | o.hidden = false |
1014 | 32 | o.ignorecase = true |
33 | o.scrolloff = 15 | |
1064 | 34 | o.sessionoptions = { "buffers", "curdir", "localoptions" } |
1014 | 35 | o.sidescrolloff = 10 |
36 | o.smartcase = true | |
37 | o.splitbelow = true | |
38 | o.splitright = true | |
1015 | 39 | o.undofile = true |
1014 | 40 | o.wildignorecase = true |
41 | ||
42 | -- Paths | |
1019 | 43 | o.backupdir:remove(".") |
1064 | 44 | o.tags:append({ ".tags", "./.tags;" }) |
1014 | 45 | o.wildignore = "*~,*.o,*.pyc,.git/*,hg/*,.svn/*" |
46 | ||
1015 | 47 | if vim.fn.executable("ag") then |
48 | o.grepprg = "ag --vimgrep" | |
1064 | 49 | o.grepformat = { "%f:%l:%c:%m", "%f" } |
1015 | 50 | end |