diff options
author | Squibid <me@zacharyscheiman.com> | 2023-02-15 23:11:33 -0500 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2023-02-15 23:11:33 -0500 |
commit | 70abc1f30f772757088b13d97256423385156080 (patch) | |
tree | 15d71d3973c41d8566304e5943a966e2d1e10d91 /lua/core/opts.lua | |
parent | 74c846a7b6461c2be572c3778d67d5df682a34e9 (diff) | |
download | nvim-70abc1f30f772757088b13d97256423385156080.tar.gz nvim-70abc1f30f772757088b13d97256423385156080.tar.bz2 nvim-70abc1f30f772757088b13d97256423385156080.zip |
Major changes including better ui and more keybinds :)
Diffstat (limited to 'lua/core/opts.lua')
-rw-r--r-- | lua/core/opts.lua | 64 |
1 files changed, 47 insertions, 17 deletions
diff --git a/lua/core/opts.lua b/lua/core/opts.lua index d08bc0c..38ba762 100644 --- a/lua/core/opts.lua +++ b/lua/core/opts.lua @@ -1,10 +1,3 @@ -o = vim.opt -g = vim.g -a = vim.api -cmd = vim.cmd - -g.mapleader = " " - --------------- -- better ui -- --------------- @@ -33,18 +26,18 @@ o.tabstop = 2 o.shiftwidth = 2 o.softtabstop = -1 -- If negative, shiftwidth value is used +-- spelling +o.spelllang = { 'en_us' } + -- colors o.termguicolors = true cmd('colorscheme jellybeans-nvim') --- diagnostics -vim.lsp.handlers["textDocument/publishDiagnostics"] = - vim.lsp.with( - vim.lsp.diagnostic.on_publish_diagnostics, - { - virtual_text = { prefix = '*' }, - } -) +-- diagnostics w/o virtual text +vim.diagnostic.config({ + underline = true, + virtual_text = false +}) colors = { black = '#000000', @@ -62,6 +55,34 @@ colors = { purple = '#C678DD', } +lspicons = { + Text = 'Tx', + Snippet = '<>', + Method = ' ', + Function = '{}', + Constructor = ' ', + Field = '""', + Variable = 'x=', + Class = '~{', + Interface = '.h', + Module = ' ', + Property = '@p', + Unit = ' ', + Value = ' ', + Enum = 'E#', + Keyword = '$1', + Color = ' ', + File = '#`', + Reference = ' ', + Folder = '[/', + EnumMember = ' ', + Constant = ' ', + Struct = ' ', + Event = ' ', + Operator = '%*', + TypeParameter = ' ', +} + -- width line o.colorcolumn = { 80 } @@ -104,9 +125,18 @@ g.netrw_localcopydircmd = 'cp -r' g.netrw_winsize = 30 g.netrw_liststyle = 1 +----------------------- +-- language settings -- +----------------------- +g.c_syntax_for_h = true -- treat c header files as c files instead of c++ files + ---------------- -- highlights -- ---------------- +-- transparent background +-- a.nvim_set_hl(0, "Normal", { bg = "" }) + +-- a.nvim_set_hl(0, "ColorColumn", { bg = colors.grey }) -- color column a.nvim_set_hl(0, "Pmenu", { bg = colors.black2 }) a.nvim_set_hl(0, "PmenuSel", { bg = colors.grey2 }) @@ -151,8 +181,8 @@ a.nvim_set_hl(0, "CmpItemKindProperty", { bg = "#4FBF63", bold = true }) a.nvim_set_hl(0, "CmpItemKindInterface", { bg = "#1e90ff", bold = true }) a.nvim_set_hl(0, "CmpItemKindClass", { bg = "#4D4C5C", bold = true }) a.nvim_set_hl(0, "CmpItemKindFile", { bg = "#E8D01C", bold = true }) - -a.nvim_set_hl(0, "TreesitterContext", { bg = colors.grey }) +a.nvim_set_hl(0, "CmpItemKindFolder", { bg = "#E8D01C", bold = true }) +a.nvim_set_hl(0, "CmpItemKindOperator", { bg = "#E06C75", bold = true }) -- telescope a.nvim_set_hl(0, "TelescopeMatching", { bg = colors.black3 }) |