add some features
This commit is contained in:
parent
b6b82216d2
commit
da87fc4247
6 changed files with 75 additions and 3 deletions
|
|
@ -49,3 +49,4 @@ map("n", "<leader>s", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]])
|
|||
|
||||
-- Reset highlight
|
||||
map("n", "<CR>", "<CMD>noh<CR><CR>")
|
||||
|
||||
|
|
|
|||
|
|
@ -42,5 +42,8 @@ o.timeoutlen = 500
|
|||
|
||||
-- Spell check
|
||||
opt.spelllang = 'en_us'
|
||||
opt.spell = false
|
||||
opt.spell = true
|
||||
|
||||
-- Markdown
|
||||
global.mkdp_browser = '/usr/bin/firefox'
|
||||
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ return {
|
|||
},
|
||||
},
|
||||
}
|
||||
vim.keymap.set("n", "<leader>nt", "<CMD>Neotree toggle<CR>")
|
||||
vim.keymap.set("n", "<leader>o", "<CMD>Neotree focus<CR>")
|
||||
vim.keymap.set("n", "<leader>pw" , "<CMD>Neotree toggle<CR>")
|
||||
vim.keymap.set("n", "<leader>cw", "<CMD>Neotree focus<CR>")
|
||||
end,
|
||||
}
|
||||
|
|
|
|||
13
lua/custom/plugins/surround.lua
Normal file
13
lua/custom/plugins/surround.lua
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
return {
|
||||
"kylechui/nvim-surround",
|
||||
version = "*", -- Use for stability; omit to use `main` branch for the latest features
|
||||
event = "VeryLazy",
|
||||
config = function()
|
||||
require("nvim-surround").setup({
|
||||
-- vim - surround maps
|
||||
})
|
||||
vim.keymap.set("n", "<leader>`", "ysiw`")
|
||||
vim.keymap.set("n", "<leader>'", "ysiw'")
|
||||
vim.keymap.set("n", '<leader>"', 'ysiw"')
|
||||
end
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue