mirror of
https://github.com/halfdan/dotfiles.git
synced 2025-09-10 19:56:24 +00:00
Move more keybindings to lua, remove dashboard
This commit is contained in:
@@ -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")
|
||||
|
Reference in New Issue
Block a user