Compare commits

..

No commits in common. "0a4c9f20481d33dd51d4878c145038fe5bf88f52" and "231705fb607e03f3fe9af636468bbdbb21003ec7" have entirely different histories.

View file

@ -60,7 +60,7 @@
-- gitsigns or LSP diagnostics.
vim.opt.signcolumn = "yes"
-- Send CursorHold autocommand event after 100ms (instead of 4000ms
-- Send CursorHold autocommend event after 100ms (instead of 4000ms
-- by default). Used, among other things, to highlight definitions
-- with treesitter faster.
vim.opt.updatetime = 100
@ -180,10 +180,6 @@
overrides = function(colors)
local theme = colors.theme
return {
-- Transparent Floating Windows
NormalFloat = { bg = "none" },
FloatBorder = { bg = "none" },
FloatTitle = { bg = "none" },
-- Less pronounced cursorline
CursorLine = { bg = theme.ui.bg_p1 },
-- More pronounced window borders
@ -321,8 +317,12 @@
''
local cmp = require("cmp")
cmp.setup({
experimental = {
ghost_text = true,
snippet = {
-- Configuring a snippet engine is required. Configure
-- neovom's native one.
expand = function(args)
vim.snippet.expand(args.body)
end,
},
mapping = cmp.mapping.preset.insert({
-- Use CTRL-{JK} to navigate and CTRL-L to confirm like
@ -330,9 +330,7 @@
["<C-j>"] = cmp.mapping.select_next_item(),
["<C-k>"] = cmp.mapping.select_prev_item(),
["<C-l>"] = cmp.mapping.confirm({ select = true }),
-- Also confirm with <Tab>
["<Tab>"] = cmp.mapping.confirm({ select = true }),
-- Scroll documentation
-- Scroll documentatiion
["<C-u>"] = cmp.mapping.scroll_docs(-4),
["<C-d>"] = cmp.mapping.scroll_docs(4),
-- Close completion menu
@ -344,11 +342,7 @@
}),
sources = cmp.config.sources({
{ name = "nvim_lsp" },
}),
window = {
completion = cmp.config.window.bordered(),
documentation = cmp.config.window.bordered(),
},
})
})
-- Add parentheses after selecting function or method item (nvim-autopairs).