Skip to content

Commit

Permalink
🔧 move vim spelling to nvim
Browse files Browse the repository at this point in the history
nvim is now default editor, vim backup and spelling in vim is not essential.
Better now to go with the defaults of nvim
  • Loading branch information
ianhomer committed Oct 14, 2024
1 parent a5726c4 commit d0193c7
Show file tree
Hide file tree
Showing 6 changed files with 252 additions and 236 deletions.
14 changes: 13 additions & 1 deletion dotfiles/nvim/.config/nvim/lua/config/options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,16 @@ vim.g.autoformat = false
local opt = vim.opt
opt.relativenumber = false
opt.conceallevel = 0
opt.spellfile = vim.fn.expand("$HOME/.config/vim/spell/en.utf-8.add")

-- Shift + J/K moves selected lines down/up in visual mode
local cmd = vim.cmd
cmd([[
vnoremap <silent> J :m '>+1<CR>gv=gv
vnoremap <silent> K :m '<-2<CR>gv=gv
vnoremap <silent> <S-Up> :m '<-2<CR>gv=gv
vnoremap <silent> <S-Down> :m '>+1<CR>gv=gv
nnoremap <silent> <S-Up> :m-2<CR>
nnoremap <silent> <S-Down> :m+<CR>
inoremap <silent> <S-Up> <Esc>:m-2<CR>
inoremap <silent> <S-Down> <Esc>:m+<CR>
]])
8 changes: 0 additions & 8 deletions dotfiles/nvim/.config/nvim/lua/plugins/fugitive.lua

This file was deleted.

11 changes: 11 additions & 0 deletions dotfiles/nvim/.config/nvim/lua/plugins/vim-plugins.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
return {
{ "tpope/vim-eunuch" },
{
"tpope/vim-fugitive",
lazy = false,
keys = {
{ "<leader>gg", "<cmd>Git<cr>", desc = "Fugitive" },
{ "<leader>gp", "<cmd>Git push<cr>", desc = "Git push" },
},
},
}
File renamed without changes.
8 changes: 4 additions & 4 deletions test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
"author": "anon",
"description": "dotme test",
"devDependencies": {
"@types/node": "22.7.4",
"@typescript-eslint/eslint-plugin": "8.8.0",
"@typescript-eslint/parser": "8.8.0",
"@types/node": "22.7.5",
"@typescript-eslint/eslint-plugin": "8.8.1",
"@typescript-eslint/parser": "8.8.1",
"eslint": "^8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-react": "7.37.1",
"eslint-plugin-sonarjs": "1.0.3",
"jest": "^29.7.0",
"prettier": "3.3.3",
"ts-node": "10.9.2",
"typescript": "5.6.2"
"typescript": "5.6.3"
},
"license": "ISC",
"main": "scratch.js",
Expand Down
Loading

0 comments on commit d0193c7

Please sign in to comment.