mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 16:41:43 +05:30
- Nvim Theme changed to github-dark-dimmed - keeps it in sync with the kitty theme
- Reorged multiple nvim settings (using LazyVim as primary now)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
-- Highlight on yank
|
||||
local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true })
|
||||
vim.api.nvim_create_autocmd('TextYankPost', {
|
||||
callback = function()
|
||||
vim.highlight.on_yank()
|
||||
end,
|
||||
group = highlight_group,
|
||||
pattern = '*',
|
||||
})
|
||||
@@ -0,0 +1,8 @@
|
||||
-- Load configs from VIM
|
||||
local vim_configs = os.getenv("HOME") .. "/.vim/configs.vim"
|
||||
if vim.loop.fs_stat(vim_configs) then
|
||||
vim.cmd("source " .. vim_configs)
|
||||
end
|
||||
|
||||
vim.opt.undodir = vim.fn.stdpath("config") .. "/undo"
|
||||
vim.opt.backupdir = vim.fn.stdpath("config") .. "/backup/"
|
||||
11
common/.config/nvim_switch/nvim_old/lua/configs/keymaps.lua
Normal file
11
common/.config/nvim_switch/nvim_old/lua/configs/keymaps.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
-- Load Keybindings from VIM
|
||||
local vim_mappings = os.getenv("HOME") .. "/.vim/key_maps.vim"
|
||||
if vim.loop.fs_stat(vim_mappings) then
|
||||
vim.cmd("source " .. vim_mappings)
|
||||
end
|
||||
|
||||
-- Remap for dealing with word wrap
|
||||
vim.keymap.set("n", "k", "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true })
|
||||
vim.keymap.set("n", "j", "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true })
|
||||
|
||||
-- map <leader>j <Plug>(easymotion-s)
|
||||
Reference in New Issue
Block a user