Compare commits

...

2 Commits

Author SHA1 Message Date
Rob Watson 711d82fc2b fix(nvim): update nvim_cmp config 2023-09-21 16:00:41 +02:00
Rob Watson e58d133058 fix(tmux): battery status 2023-09-21 06:29:55 +02:00
2 changed files with 16 additions and 8 deletions

View File

@ -10,7 +10,7 @@ set-option -g set-titles on
set-option -g focus-events on
set -g status-style 'fg=white, bg=colour8'
set -g window-status-current-style 'fg=black, bg=green'
set -g status-right '#(batinfo) #[fg=black, bg=colour2] #(sysinfo) #[default] #[fg=white, bg=colour238] %H:%M #[default]'
set -g status-right '#(tmbatinfo) #[fg=black, bg=colour2] #(sysinfo) #[default] #[fg=white, bg=colour238] %H:%M #[default]'
set -g status-justify centre
set-window-option -g mode-keys vi

View File

@ -1,15 +1,20 @@
local cmp = require("cmp")
local cmp_buffer = require("cmp_buffer")
-- local cmp_buffer = require("cmp_buffer")
cmp.setup({
completion = {
completeopt = "menu,menuone,noinsert",
completeopt = "menu,menuone,noinsert,noselect",
},
snippet = {
expand = function(args)
vim.fn["vsnip#anonymous"](args.body)
end,
},
preselect = cmp.PreselectMode.None,
window = {
completion = cmp.config.window.bordered(),
documentation = cmp.config.window.bordered(),
},
mapping = cmp.mapping.preset.insert({
["<C-u>"] = cmp.mapping.scroll_docs(-4),
["<C-d>"] = cmp.mapping.scroll_docs(4),
@ -34,13 +39,16 @@ cmp.setup({
}),
sorting = {
comparators = {
function(...)
return cmp_buffer:compare_locality(...)
end,
cmp.config.compare.offset,
cmp.config.compare.exact,
cmp.config.compare.score,
cmp.config.compare.recently_used,
-- require("cmp-under-comparator").under,
cmp.config.compare.kind,
},
},
view = {
entries = "native",
formatting = {
fields = { "kind", "abbr", "menu" },
},
experimental = {
ghost_text = true,