local function merge_into(target, extras)
for key, value in pairs(extras) do
target[key] = value
end
end
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
merge_into(vim.opt, {
guifont = 'UbuntuMono Nerd Font Mono:h15', mouse = 'a', textwidth = 0, lazyredraw = true,
list = true,
listchars = {
tab = '→ ',
space = '·',
nbsp = '␣',
trail = '•',
eol = '¶',
precedes = '«',
extends = '»',
},
number = true,
relativenumber = true,
ignorecase = true,
smartcase = true,
foldcolumn = '1', foldclose = 'all', scrolloff = 10, textwidth = 80, hidden = true, cursorline = true, signcolumn = 'yes', showmode = false, undofile = true,
completeopt = { 'noinsert', 'menuone', 'noselect' },
shortmess = vim.opt.shortmess + 'c', pumheight = 20,
tabstop = 4, softtabstop = -1, shiftwidth = 4, expandtab = true, smarttab = true, })
require'telescope'.setup {}
require'nvim-lightbulb'.update_lightbulb {
sign = {
enabled = true,
priority = 100,
text = 'A'
},
float = {
enabled = true,
text = "A",
win_opts = {},
},
virtual_text = {
enabled = false,
text = "A",
}
}
local cmp = require 'cmp'
cmp.setup {
sources = cmp.config.sources({
{ name = 'nvim_lsp' },
}, {
{ name = 'buffer' },
}),
view = {
entries = 'native',
},
preselect = cmp.PreselectMode.None,
mapping = {
['<Tab>'] = function(fallback)
if cmp.visible() then
cmp.select_next_item()
else
fallback()
end
end,
['<S-Tab>'] = function(fallback)
if cmp.visible() then
cmp.select_prev_item()
else
fallback()
end
end,
},
}
cmp.setup.cmdline('/', {
sources = cmp.config.sources({
{ name = 'buffer' },
})
})
require 'Comment'.setup {}
require'nvim-autopairs'.setup {}
require'neoclip'.setup {}
require 'nvim-gps'.setup {}