Compare commits

..

No commits in common. "master" and "nvim-cmp" have entirely different histories.

5 changed files with 5 additions and 14 deletions

View File

@ -28,6 +28,7 @@ ct.map('n', '<Leader>wq', '<cmd>w<CR><cmd>bd<CR>')
-- netrw
ct.map('n', '<Leader>e', '<cmd>Explore<CR>')
--
-- LSP
--
@ -77,7 +78,6 @@ ct.map('n', '<Leader>h', '<cmd>lua vim.lsp.buf.hover()<CR>')
--
-- Commands
--
ct.defcmd('CdMe', ':lcd %:p:h')
-- ct.defcmd('Xrdb', '!xrdb %')
-- ct.defcmd('ExTerm', '!' .. defs.external_term .. '&<CR><CR>')
-- ct.defcmd('ExFileMgr', '!' .. defs.external_filemgr .. '. &<CR><CR>')

View File

@ -45,7 +45,7 @@ vim.opt.autowrite = true
vim.opt.foldmethod = "indent"
vim.opt.foldlevelstart = 99
-- auto cd to the current file's location
-- vim.cmd('autocmd BufEnter * silent! lcd %:p:h')
vim.cmd('autocmd BufEnter * silent! lcd %:p:h')
-- highlighting for other langs in markdown docs
vim.g.markdown_fenced_languages = {'html', 'vim', 'python', 'c', 'bash=sh'}
-- auto close delimiters (eg. parentheses, brackets)

View File

@ -147,13 +147,13 @@ return {
["<C-f>"] = cmp.mapping.scroll_docs(4),
["<C-Space>"] = cmp.mapping.complete(),
["<C-e>"] = cmp.mapping.abort(),
["<Right>"] = cmp.mapping.confirm({ select = true }),
["<CR>"] = cmp.mapping.confirm({ select = true }),
}),
sources = cmp.config.sources({
{ name = "nvim_lsp" },
{ name = "snippets" }, -- This comes from nvim-snippets
{ name = "nvim_lsp_signature_help" },
-- { name = "cmp_ai" },
{ name = "cmp_ai" },
}, {
{ name = "buffer" },
{ name = "path" },

View File

@ -4,16 +4,8 @@ return {
'wuelnerdotexe/vim-enfocado',
lazy = false,
config = function()
vim.g.enfocado_style = 'nature'
vim.g.enfocad_style = 'nature'
vim.cmd 'colo enfocado'
vim.cmd [[highlight Normal ctermbg=NONE guibg=NONE]]
local ct = require('conftool')
ct.augroup('templates', {
'ColorScheme', 'enfocado',
'highlight', 'Normal', 'ctermbg=NONE', 'guibg=NONE'
})
end,
keys = {
{

View File

@ -35,6 +35,5 @@ vim.api.nvim_create_autocmd({'BufEnter'}, {
callback = function(ev) ct.set 'wrap' end,
desc = 'set wrap text',
})
-- turn on mouse
vim.opt.mouse = 'a'