Add vscode fixes and general improvements
This commit is contained in:
parent
8c02d4ea84
commit
573ea78839
@ -1,5 +1,12 @@
|
|||||||
local map = vim.api.nvim_set_keymap
|
local map = vim.api.nvim_set_keymap
|
||||||
|
|
||||||
|
-- vscode
|
||||||
|
if vim.g.vscode then
|
||||||
|
-- undo/REDO via vscode
|
||||||
|
map("n","u","<Cmd>call VSCodeNotify('undo')<CR>")
|
||||||
|
map("n","<C-r>","<Cmd>call VSCodeNotify('redo')<CR>")
|
||||||
|
end
|
||||||
|
|
||||||
-- generic mappings
|
-- generic mappings
|
||||||
map('v', '<', '<gv', { noremap = true })
|
map('v', '<', '<gv', { noremap = true })
|
||||||
map('v', '>', '>gv', { noremap = true })
|
map('v', '>', '>gv', { noremap = true })
|
||||||
|
@ -68,7 +68,7 @@ return require("packer").startup(function(use)
|
|||||||
-- local
|
-- local
|
||||||
{ "hrsh7th/cmp-cmdline", after = "nvim-cmp" },
|
{ "hrsh7th/cmp-cmdline", after = "nvim-cmp" },
|
||||||
{ "hrsh7th/cmp-buffer", after = "nvim-cmp" },
|
{ "hrsh7th/cmp-buffer", after = "nvim-cmp" },
|
||||||
{ "hrsh7th/cmp-path", after = "nvim-cmp" },
|
{ "FelipeLema/cmp-async-path", after = "nvim-cmp" },
|
||||||
{
|
{
|
||||||
"petertriho/cmp-git",
|
"petertriho/cmp-git",
|
||||||
after = "nvim-cmp",
|
after = "nvim-cmp",
|
||||||
@ -148,18 +148,18 @@ return require("packer").startup(function(use)
|
|||||||
require("hop").setup({ keys = "etovxqpdygfblzhckisuran" })
|
require("hop").setup({ keys = "etovxqpdygfblzhckisuran" })
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
use({
|
-- use({
|
||||||
"c0r73x/neotags.lua",
|
-- "c0r73x/neotags.lua",
|
||||||
event = "BufEnter",
|
-- event = "BufEnter",
|
||||||
config = function()
|
-- config = function()
|
||||||
require("neotags").setup({
|
-- require("neotags").setup({
|
||||||
ctags = {
|
-- enable = string.find(vim.fn.getcwd(), "/home/"),
|
||||||
directory = vim.env.HOME .. '/.cache/nvim/neotags/' -- default directory where to store tags
|
-- ctags = {
|
||||||
|
-- directory = vim.env.HOME .. '/.cache/nvim/neotags' -- default directory where to store tags
|
||||||
}
|
-- },
|
||||||
})
|
-- })
|
||||||
end
|
-- end
|
||||||
})
|
-- })
|
||||||
|
|
||||||
-- eye-candy
|
-- eye-candy
|
||||||
use({
|
use({
|
||||||
|
@ -51,13 +51,13 @@ cmp.setup({
|
|||||||
-- ... Your other mappings ...
|
-- ... Your other mappings ...
|
||||||
},
|
},
|
||||||
sources = cmp.config.sources({
|
sources = cmp.config.sources({
|
||||||
|
{ name = "luasnip" }, -- For luasnip users.
|
||||||
|
{ name = "ctags" },
|
||||||
{ name = "nvim_lsp" },
|
{ name = "nvim_lsp" },
|
||||||
{ name = "treesitter" },
|
{ name = "treesitter" },
|
||||||
{ name = "buffer" },
|
{ name = "async_path" },
|
||||||
{ name = "luasnip" }, -- For luasnip users.
|
|
||||||
{ name = "path" },
|
|
||||||
{ name = "git" },
|
{ name = "git" },
|
||||||
{ name = "ctags" },
|
{ name = "buffer" },
|
||||||
})
|
})
|
||||||
-- ... Your other configuration ...
|
-- ... Your other configuration ...
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user