require('settings')
require('map')
+require('functions')
require('theme')
--- /dev/null
+vim.api.nvim_create_autocmd("BufWinEnter", {
+ pattern = { "*.txt" },
+ callback = function()
+ if vim.o.filetype == 'help' then vim.cmd.wincmd("L") end
+ end
+})
vim.keymap.set( 'n', '<leader>h', ":vsplit " )
vim.keymap.set( 'n', '<leader>v', ":split " )
vim.keymap.set( 'n', '<leader>t', ':tabnew ' )
-vim.keymap.set( 'n', '<leader>B', '<CMD>bnext<CR>' )
+vim.keymap.set( 'n', '<leader>b', '<CMD>bnext<CR>' )
-- move through virtual lines
vim.keymap.set( 'n', 'j', 'gj' )
-- end
-- },
- {
- 'junegunn/fzf',
- keys = {
- { '<leader>H', "<CMD>call fzf#run({ 'sink': 'vertical botright split', 'window': { 'width': 0.9, 'height': 0.6, 'relative': v:true} })<CR>" },
- { '<leader>V', "<CMD>call fzf#run({ 'sink': 'botright split', 'window': { 'width': 0.9, 'height': 0.6, 'relative': v:true} })<CR>" },
- {'<leader>T', "<CMD>call fzf#run({ 'sink': 'tabnew', 'window': { 'width': 0.9, 'height': 0.6, 'relative': v:true} })<CR>"},
- },
- },
-
{
'junegunn/fzf.vim',
- dependencies = {'fzf'},
+ dependencies = {
+ 'junegunn/fzf'
+ },
keys = {
{ '<leader>f', '<CMD>GFiles<CR>' },
{ '<leader>F', '<CMD>Files<CR>' },
mapping = cmp.mapping.preset.insert({
['<C-b>'] = cmp.mapping.scroll_docs(-4),
['<C-f>'] = cmp.mapping.scroll_docs(4),
- ['<C-Space>'] = cmp.mapping.complete(),
- ['<C-e>'] = cmp.mapping.abort(),
- ['<CR>'] = cmp.mapping.confirm({ select = true }),
+ ['<TAB>'] = cmp.mapping.complete(),
+ ['<C-c>'] = cmp.mapping.abort(),
+ ['<TAB>'] = cmp.mapping.confirm({ select = true }),
}),
sources = cmp.config.sources({
{ name = 'nvim_lsp' },
vim.o.shiftround = true
vim.o.showcmd = true
-vim.o.cmdheight = 1
+vim.o.cmdheight = 0
vim.o.cmdwinheight = 10
vim.o.backupdir = '/home/huck/.local/state/nvim/backup'