mirror of
https://github.com/halfdan/dotfiles.git
synced 2025-04-26 20:35:40 +00:00
Move more keybindings to lua, remove dashboard
This commit is contained in:
parent
22d89321a5
commit
e9005d0c92
@ -4,7 +4,6 @@ require('settings')
|
||||
-- Convert to lua
|
||||
vim.cmd('source ~/.config/nvim/vim-plug/plugins.vim')
|
||||
|
||||
|
||||
require('colorscheme')
|
||||
|
||||
require('lsp')
|
||||
|
@ -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([[
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -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")
|
||||
|
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user