Added vscode options
This commit is contained in:
@@ -1,5 +1,22 @@
|
|||||||
|
local vscode = require('vscode-neovim')
|
||||||
local set = vim.keymap.set
|
local set = vim.keymap.set
|
||||||
|
|
||||||
|
function loadInNeovim(mode, mapping, command, desc)
|
||||||
|
if desc == nil then
|
||||||
|
set(mode, mapping, command)
|
||||||
|
else
|
||||||
|
set(mode, mapping, command, desc)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function loadInVscode(mode, mapping, command, desc)
|
||||||
|
if desc == nil then
|
||||||
|
vscode.map(mode, mapping, command)
|
||||||
|
else
|
||||||
|
vscode.map(mode, mapping, command, desc)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
set("v", "J", ":m '>+1<CR>gv=gv")
|
set("v", "J", ":m '>+1<CR>gv=gv")
|
||||||
set("v", "K", ":m '<-2<CR>gv=gv")
|
set("v", "K", ":m '<-2<CR>gv=gv")
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
if vim.g.vscode then
|
||||||
|
require("taken.vscode")
|
||||||
|
else
|
||||||
require("taken.core")
|
require("taken.core")
|
||||||
require("taken.lazy")
|
require("taken.lazy")
|
||||||
require("taken.custom")
|
require("taken.custom")
|
||||||
|
end
|
||||||
1
lua/taken/vscode.lua
Normal file
1
lua/taken/vscode.lua
Normal file
@@ -0,0 +1 @@
|
|||||||
|
require("taken.core.remaps")
|
||||||
Reference in New Issue
Block a user