mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
Sync from WSL
This commit is contained in:
parent
165037d840
commit
2f8378e1a1
7 changed files with 68 additions and 7 deletions
|
|
@ -1,2 +1,8 @@
|
|||
-- bootstrap lazy.nvim, LazyVim and your plugins
|
||||
require("config.lazy")
|
||||
if (vim.g.vscode) then
|
||||
print("VSCode detected, skipping lazy loading")
|
||||
require("vscode.code")
|
||||
else
|
||||
require("config.lazy")
|
||||
-- require("config.lazy")
|
||||
end
|
||||
|
|
|
|||
4
.config/nvim/lua/plugins/just.lua
Normal file
4
.config/nvim/lua/plugins/just.lua
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
return {
|
||||
"NoahTheDuke/vim-just",
|
||||
ft = { "just" },
|
||||
}
|
||||
40
.config/nvim/lua/vscode/keymaps.lua
Normal file
40
.config/nvim/lua/vscode/keymaps.lua
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
local keymap = vim.keymap.set
|
||||
|
||||
vim.g.mapleader = " "
|
||||
|
||||
vim.keymap.set({ "n", "v", "", "s", "x" }, "e", "k", { desc = "move cursor ⇧" })
|
||||
vim.keymap.set({ "n", "v", "", "s", "x" }, "n", "j", { desc = "move cursor ⇩" })
|
||||
vim.keymap.set({ "n", "v", "", "s", "x" }, "h", "h", { desc = "move cursor ⇦" })
|
||||
vim.keymap.set({ "n", "v", "", "s", "x" }, "i", "l", { desc = "move cursor ⇨" })
|
||||
|
||||
vim.keymap.set({ "n", "v", "", "s", "x" }, "N", "J", { desc = "Insert at the line start" })
|
||||
vim.keymap.set({ "n", "v", "", "s", "x" }, "E", "K", { desc = "Insert at the line start" })
|
||||
vim.keymap.set({ "n", "v", "", "s", "x" }, "I", "L", { desc = "Insert at the line start" })
|
||||
|
||||
vim.keymap.set({ "n", "v", "", "s", "x" }, "l", "i", { desc = "Insert mode" })
|
||||
vim.keymap.set({ "n", "v", "", "s", "x" }, "L", "I", { desc = "Insert at the line start" })
|
||||
|
||||
vim.keymap.set({ "n", "v", "", "s", "x" }, "k", "n", { desc = "Insert at the line start" })
|
||||
vim.keymap.set({ "n", "v", "", "s", "x" }, "K", "N", { desc = "Insert at the line start" })
|
||||
|
||||
vim.keymap.set({ "n", "v", "", "s", "x" }, "j", "e", { desc = "Insert at the line start" })
|
||||
vim.keymap.set({ "n", "v", "", "s", "x" }, "J", "E", { desc = "Insert at the line start" })
|
||||
|
||||
vim.opt.clipboard = "unnamedplus"
|
||||
vim.opt.expandtab = true
|
||||
vim.opt.tabstop = 5
|
||||
vim.opt.shiftwidth = 4
|
||||
vim.opt.autoindent = true
|
||||
vim.opt.smartindent = true
|
||||
vim.opt.wrap = true
|
||||
vim.opt.scrolloff = 3
|
||||
vim.opt.hlsearch = true
|
||||
vim.opt.incsearch = true
|
||||
vim.opt.ignorecase = true
|
||||
vim.opt.smartcase = true
|
||||
vim.opt.number = true
|
||||
vim.opt.relativenumber = true
|
||||
|
||||
-- VSCode commands
|
||||
keymap({ "n", "v" }, "<leader>pp", "<cmd>lua require('vscode').action('workbench.view.extension.project-manager')<CR>")
|
||||
keymap({ "n", "v" }, "<leader>pP", "<cmd>lua require('vscode').action('projectManager.listProjects')<CR>")
|
||||
|
|
@ -31,7 +31,7 @@ set wrap
|
|||
set scrolloff=3
|
||||
set hlsearch
|
||||
set incsearch
|
||||
est ignorecase
|
||||
set ignorecase
|
||||
set smartcase
|
||||
|
||||
" XDG Directory Specifications
|
||||
|
|
@ -49,4 +49,4 @@ set backupdir=$XDG_STATE_HOME/vim/backup
|
|||
set directory=$XDG_STATE_HOME/vim/swap
|
||||
set undodir=$XDG_STATE_HOME/vim/undo
|
||||
set viewdir=$XDG_STATE_HOME/vim/view
|
||||
set shada+=n$XDG_STATE_HOME/vim/shada
|
||||
" set shada+=n$XDG_STATE_HOME/vim/shada
|
||||
|
|
|
|||
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
|||
.DS_Store
|
||||
*private*
|
||||
.private.env.*
|
||||
.config/nvim/tt.*
|
||||
|
|
@ -20,3 +21,6 @@ test.*
|
|||
# WindowsTerminal.json
|
||||
PowerToys/
|
||||
xdg-ninja/
|
||||
.DS_Store
|
||||
vscode/
|
||||
.vscode/
|
||||
|
|
@ -71,3 +71,10 @@ fi
|
|||
# vcpkg
|
||||
|
||||
export VCPKG_ROOT=~/vcpkg
|
||||
|
||||
# Package Manager
|
||||
|
||||
alias pac="sudo pacman"
|
||||
alias paci="sudo pacman -S"
|
||||
alias pacr="sudo pacman -R"
|
||||
alias pacu="sudo pacman -Ss"
|
||||
Loading…
Add table
Add a link
Reference in a new issue