NVIM Configs in Lua #1

Merged
tyrel merged 4 commits from nvim into main 2023-01-02 20:38:02 +00:00
2 changed files with 6 additions and 10 deletions
Showing only changes of commit d2c7d381d0 - Show all commits

View File

@ -31,9 +31,7 @@ return function(use)
use({'hashivim/vim-terraform'})
use({'rmagatti/auto-session'})
use({'rmagatti/session-lens',
config = function(){
require'session-lens'.setup { path_display={'shorten'}, }
}
config = function() require'session-lens'.setup { path_display={'shorten'} } end
})
use({'ludovicchabant/vim-gutentags'})
-- use({'ervandew/supertab'})
@ -52,9 +50,7 @@ return function(use)
}
use({
'nvim-telescope/telescope.nvim',
config = function () {
require('telescope').setup{ file_ignore_patterns = {"node_modules","./venv/"}, }
}
config = function () require('telescope').setup{ file_ignore_patterns = {"node_modules","./venv/"} } end
})
use({'thoughtbot/vim-rspec'})
use({'voldikss/vim-floaterm'})

View File

@ -93,10 +93,10 @@ _G.s_tab_complete = function()
end
end
vim.api.nvim_set_keymap("i", "<Tab>", "v:lua.tab_complete()", { expr = true })
vim.api.nvim_set_keymap("s", "<Tab>", "v:lua.tab_complete()", { expr = true })
vim.api.nvim_set_keymap("i", "<S-Tab>", "v:lua.s_tab_complete()", { expr = true })
vim.api.nvim_set_keymap("s", "<S-Tab>", "v:lua.s_tab_complete()", { expr = true })
-- vim.api.nvim_set_keymap("i", "<Tab>", "v:lua.tab_complete()", { expr = true })
-- vim.api.nvim_set_keymap("s", "<Tab>", "v:lua.tab_complete()", { expr = true })
-- vim.api.nvim_set_keymap("i", "<S-Tab>", "v:lua.s_tab_complete()", { expr = true })
-- vim.api.nvim_set_keymap("s", "<S-Tab>", "v:lua.s_tab_complete()", { expr = true })
map("v", ">", ">gv", {}) -- Retain visual select when indenting
map("v", "<", "<gv", {}) -- Retain visual select when indenting