Compare commits
2 Commits
157da03439
...
711d82fc2b
Author | SHA1 | Date |
---|---|---|
Rob Watson | 711d82fc2b | |
Rob Watson | e58d133058 |
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue