Sun, 19 Feb 2023 13:48:14 -0600
Customize LSP float diags further
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 | |
10 | ||
11 | -- Display | |
12 | o.breakindent = true | |
13 | o.breakindentopt = "min:66,shift:2" | |
1026 | 14 | o.conceallevel = 3 |
1014 | 15 | o.diffopt:append("algorithm:patience") |
16 | o.fillchars = "fold: ,vert:│" | |
17 | o.linebreak = true | |
18 | o.listchars = "tab:⇥·,trail:◼,nbsp:◻,extends:»,precedes:«" | |
1026 | 19 | o.pumheight = 10 |
1014 | 20 | o.showbreak = "» " |
21 | o.termguicolors = true | |
22 | o.signcolumn = "number" | |
1026 | 23 | o.winminwidth = 5 |
1014 | 24 | |
25 | -- set font etc | |
26 | if vim.fn.has("gui") then | |
27 | o.number = true | |
28 | end | |
29 | ||
30 | -- Behavior | |
31 | o.autowriteall = true | |
1015 | 32 | o.backup = true |
33 | o.completeopt:append({"menuone", "noselect"}) | |
1025 | 34 | o.hidden = false |
1014 | 35 | o.ignorecase = true |
36 | o.scrolloff = 15 | |
1015 | 37 | o.sessionoptions = {"buffers", "curdir", "localoptions"} |
1014 | 38 | o.sidescrolloff = 10 |
39 | o.smartcase = true | |
40 | o.splitbelow = true | |
41 | o.splitright = true | |
1015 | 42 | o.undofile = true |
1014 | 43 | o.wildignorecase = true |
44 | ||
45 | -- Paths | |
1019 | 46 | o.backupdir:remove(".") |
1015 | 47 | o.tags:append({".tags", "./.tags;"}) |
1014 | 48 | o.wildignore = "*~,*.o,*.pyc,.git/*,hg/*,.svn/*" |
49 | ||
1015 | 50 | if vim.fn.executable("ag") then |
51 | o.grepprg = "ag --vimgrep" | |
1026 | 52 | o.grepformat = {"%f:%l:%c:%m", "%f"} |
1015 | 53 | end |