mirror of
https://github.com/halfdan/dotfiles.git
synced 2025-04-27 12:55:38 +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
|
-- Convert to lua
|
||||||
vim.cmd('source ~/.config/nvim/vim-plug/plugins.vim')
|
vim.cmd('source ~/.config/nvim/vim-plug/plugins.vim')
|
||||||
|
|
||||||
|
|
||||||
require('colorscheme')
|
require('colorscheme')
|
||||||
|
|
||||||
require('lsp')
|
require('lsp')
|
||||||
|
@ -23,14 +23,11 @@ vim.cmd([[
|
|||||||
tnoremap <Esc> <C-\><C-n>
|
tnoremap <Esc> <C-\><C-n>
|
||||||
]])
|
]])
|
||||||
|
|
||||||
-- TODO fix this
|
|
||||||
-- resize with arrows
|
-- resize with arrows
|
||||||
vim.cmd([[
|
vim.api.nvim_set_keymap('n', '<C-Up>', ':resize -2<CR>', {silent = true})
|
||||||
nnoremap <silent> <C-Up> :resize -2<CR>
|
vim.api.nvim_set_keymap('n', '<C-Down>', ':resize +2<CR>', {silent = true})
|
||||||
nnoremap <silent> <C-Down> :resize +2<CR>
|
vim.api.nvim_set_keymap('n', '<C-Left>', ':vertical resize -2<CR>', {silent = true})
|
||||||
nnoremap <silent> <C-Left> :vertical resize +2<CR>
|
vim.api.nvim_set_keymap('n', '<C-Right>', ':vertical resize +2<CR>', {silent = true})
|
||||||
nnoremap <silent> <C-Right> :vertical resize -2<CR>
|
|
||||||
]])
|
|
||||||
|
|
||||||
-- improved keyboard support for navigation (especially terminal)
|
-- improved keyboard support for navigation (especially terminal)
|
||||||
vim.cmd([[
|
vim.cmd([[
|
||||||
|
@ -108,7 +108,11 @@ local mappings = {
|
|||||||
R = {"<cmd>Telescope registers<cr>", "Registers"},
|
R = {"<cmd>Telescope registers<cr>", "Registers"},
|
||||||
t = {"<cmd>Telescope live_grep<cr>", "Text"}
|
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")
|
local wk = require("which-key")
|
||||||
|
@ -43,9 +43,6 @@ call plug#begin()
|
|||||||
" Easy commenting for Vim
|
" Easy commenting for Vim
|
||||||
Plug 'preservim/nerdcommenter'
|
Plug 'preservim/nerdcommenter'
|
||||||
|
|
||||||
" Dashboard
|
|
||||||
Plug 'glepnir/dashboard-nvim'
|
|
||||||
|
|
||||||
" NERD Tree - tree explorer
|
" NERD Tree - tree explorer
|
||||||
" https://github.com/scrooloose/nerdtree
|
" https://github.com/scrooloose/nerdtree
|
||||||
" http://usevim.com/2012/07/18/nerdtree/
|
" http://usevim.com/2012/07/18/nerdtree/
|
||||||
@ -55,7 +52,7 @@ call plug#begin()
|
|||||||
|
|
||||||
" nerdtree-git-plugin - show git status in NERD Tree
|
" nerdtree-git-plugin - show git status in NERD Tree
|
||||||
" https://github.com/Xuyuanp/nerdtree-git-plugi
|
" https://github.com/Xuyuanp/nerdtree-git-plugi
|
||||||
Plug 'Xuyuanp/nerdtree-git-plugin'
|
" Plug 'Xuyuanp/nerdtree-git-plugin'
|
||||||
|
|
||||||
" Enforce editor settings
|
" Enforce editor settings
|
||||||
" https://github.com/editorconfig/editorconfig-vim
|
" https://github.com/editorconfig/editorconfig-vim
|
||||||
@ -65,6 +62,7 @@ call plug#begin()
|
|||||||
Plug 'neovim/nvim-lspconfig'
|
Plug 'neovim/nvim-lspconfig'
|
||||||
Plug 'hrsh7th/nvim-compe'
|
Plug 'hrsh7th/nvim-compe'
|
||||||
Plug 'glepnir/lspsaga.nvim'
|
Plug 'glepnir/lspsaga.nvim'
|
||||||
|
Plug 'kabouzeid/nvim-lspinstall'
|
||||||
|
|
||||||
" Terminal in floating window
|
" Terminal in floating window
|
||||||
Plug 'voldikss/vim-floaterm'
|
Plug 'voldikss/vim-floaterm'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user