summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorAdam <56338480+adastx@users.noreply.github.com>2021-10-09 10:48:51 +0200
committerAdam <56338480+adastx@users.noreply.github.com>2021-10-09 10:48:51 +0200
commit7830e9b65a4f013a55d1390f4470d843c172f797 (patch)
tree34558964e5dc1921e972d3b15b247836b8659f12 /.config/nvim
parent61d67d50b1981e9b9f82acd7d9a5209d0451c737 (diff)
...
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/init.vim1
-rw-r--r--.config/nvim/lua/opts.lua8
2 files changed, 3 insertions, 6 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index 04f7030..3fc0aef 100644
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -43,3 +43,4 @@ let g:ascii = [
\ '',
\]
let g:startify_custom_header = startify#pad(g:ascii)
+" autocmd FileType markdown lua require('cmp').setup.buffer { enabled = false }
diff --git a/.config/nvim/lua/opts.lua b/.config/nvim/lua/opts.lua
index 3696789..079e74d 100644
--- a/.config/nvim/lua/opts.lua
+++ b/.config/nvim/lua/opts.lua
@@ -18,11 +18,6 @@ local t = function(str)
return vim.api.nvim_replace_termcodes(str, true, true, true)
end
-local check_back_space = function()
- local col = vim.fn.col(".") - 1
- return col == 0 or vim.fn.getline("."):sub(col, col):match("%s") ~= nil
-end
-
cmp.setup {
snippet = {
expand = function(args)
@@ -55,8 +50,9 @@ cmp.setup {
end, { "i", "s", }),
},
sources = {
- { name = 'ultisnips' },
{ name = 'nvim_lsp' },
+ { name = 'ultisnips' },
+ { name = 'buffer' },
},
}