Move more keybindings to lua, remove dashboard

This commit is contained in:
Fabian Becker 2021-05-20 08:58:27 +02:00
parent 22d89321a5
commit e9005d0c92
No known key found for this signature in database
GPG Key ID: A8C282BC79C830AC
5 changed files with 13 additions and 15 deletions

View File

@ -4,7 +4,6 @@ require('settings')
-- Convert to lua
vim.cmd('source ~/.config/nvim/vim-plug/plugins.vim')
require('colorscheme')
require('lsp')

View File

@ -23,14 +23,11 @@ vim.cmd([[
tnoremap <Esc> <C-\><C-n>
]])
-- TODO fix this
-- resize with arrows
vim.cmd([[
nnoremap <silent> <C-Up> :resize -2<CR>
nnoremap <silent> <C-Down> :resize +2<CR>
nnoremap <silent> <C-Left> :vertical resize +2<CR>
nnoremap <silent> <C-Right> :vertical resize -2<CR>
]])
vim.api.nvim_set_keymap('n', '<C-Up>', ':resize -2<CR>', {silent = true})
vim.api.nvim_set_keymap('n', '<C-Down>', ':resize +2<CR>', {silent = true})
vim.api.nvim_set_keymap('n', '<C-Left>', ':vertical resize -2<CR>', {silent = true})
vim.api.nvim_set_keymap('n', '<C-Right>', ':vertical resize +2<CR>', {silent = true})
-- improved keyboard support for navigation (especially terminal)
vim.cmd([[

View File

@ -13,8 +13,8 @@ require'lspconfig'.pyright.setup {
settings = {
python = {
analysis = {
typeCheckingMode = O.python.analysis.type_checking,
autoSearchPaths = O.python.analysis.auto_search_paths,
typeCheckingMode = O.python.analysis.type_checking,
autoSearchPaths = O.python.analysis.auto_search_paths,
useLibraryCodeForTypes = O.python.analysis.use_library_code_types
}
}

View File

@ -108,7 +108,11 @@ local mappings = {
R = {"<cmd>Telescope registers<cr>", "Registers"},
t = {"<cmd>Telescope live_grep<cr>", "Text"}
},
S = {name = "+Session", s = {"<cmd>SessionSave<cr>", "Save Session"}, l = {"<cmd>SessionLoad<cr>", "Load Session"}}
S = {
name = "+Session",
s = {"<cmd>SessionSave<cr>", "Save Session"},
l = {"<cmd>SessionLoad<cr>", "Load Session"}
}
}
local wk = require("which-key")

View File

@ -43,9 +43,6 @@ call plug#begin()
" Easy commenting for Vim
Plug 'preservim/nerdcommenter'
" Dashboard
Plug 'glepnir/dashboard-nvim'
" NERD Tree - tree explorer
" https://github.com/scrooloose/nerdtree
" http://usevim.com/2012/07/18/nerdtree/
@ -55,7 +52,7 @@ call plug#begin()
" nerdtree-git-plugin - show git status in NERD Tree
" https://github.com/Xuyuanp/nerdtree-git-plugi
Plug 'Xuyuanp/nerdtree-git-plugin'
" Plug 'Xuyuanp/nerdtree-git-plugin'
" Enforce editor settings
" https://github.com/editorconfig/editorconfig-vim
@ -65,6 +62,7 @@ call plug#begin()
Plug 'neovim/nvim-lspconfig'
Plug 'hrsh7th/nvim-compe'
Plug 'glepnir/lspsaga.nvim'
Plug 'kabouzeid/nvim-lspinstall'
" Terminal in floating window
Plug 'voldikss/vim-floaterm'