Compare commits
No commits in common. "2c1cb966723b8aac23297e8aee85c2a94722dd3b" and "c26016c99bb8a73f63555eb09d4237ff67eccd03" have entirely different histories.
2c1cb96672
...
c26016c99b
@ -1,24 +0,0 @@
|
|||||||
# Color theme: Idle Toes
|
|
||||||
# Auto-generated by Gogh (https://Gogh-Co.github.io/Gogh/)
|
|
||||||
|
|
||||||
color0 #323232
|
|
||||||
color1 #D25252
|
|
||||||
color2 #7FE173
|
|
||||||
color3 #FFC66D
|
|
||||||
color4 #4099FF
|
|
||||||
color5 #F680FF
|
|
||||||
color6 #BED6FF
|
|
||||||
color7 #EEEEEC
|
|
||||||
color8 #535353
|
|
||||||
color9 #F07070
|
|
||||||
color10 #9DFF91
|
|
||||||
color11 #FFE48B
|
|
||||||
color12 #5EB7F7
|
|
||||||
color13 #FF9DFF
|
|
||||||
color14 #DCF4FF
|
|
||||||
color15 #FFFFFF
|
|
||||||
background #222222
|
|
||||||
foreground #FFFFFF
|
|
||||||
cursor #FFFFFF
|
|
||||||
selection_foreground none
|
|
||||||
selection_background none
|
|
2493
kitty/kitty.conf
2493
kitty/kitty.conf
File diff suppressed because it is too large
Load Diff
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"diagnostics.globals": [
|
|
||||||
"vim",
|
|
||||||
"require"
|
|
||||||
]
|
|
||||||
}
|
|
@ -1,5 +0,0 @@
|
|||||||
require("config.vimrc")
|
|
||||||
|
|
||||||
require("config.lazy")
|
|
||||||
---@diagnostic disable-next-line: different-requires
|
|
||||||
require("lazy").setup("plugins")
|
|
@ -1,23 +0,0 @@
|
|||||||
{
|
|
||||||
"alpha-nvim": { "branch": "main", "commit": "de72250e054e5e691b9736ee30db72c65d560771" },
|
|
||||||
"blink.cmp": { "branch": "main", "commit": "4f38ce99a472932d5776337f08f7a8180f1f571a" },
|
|
||||||
"catppuccin": { "branch": "main", "commit": "1bf070129c0b6f77cc23f6a2212dcdc868308c52" },
|
|
||||||
"friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" },
|
|
||||||
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
|
|
||||||
"lualine.nvim": { "branch": "master", "commit": "15884cee63a8c205334ab13ab1c891cd4d27101a" },
|
|
||||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "d39a75bbce4b8aad5d627191ea915179c77c100f" },
|
|
||||||
"mason.nvim": { "branch": "main", "commit": "7c7318e8bae7e3536ef6b9e86b9e38e74f2e125e" },
|
|
||||||
"mini.icons": { "branch": "main", "commit": "397ed3807e96b59709ef3292f0a3e253d5c1dc0a" },
|
|
||||||
"neo-tree.nvim": { "branch": "v3.x", "commit": "f481de16a0eb59c985abac8985e3f2e2f75b4875" },
|
|
||||||
"none-ls.nvim": { "branch": "main", "commit": "7c493a266a6b1ed419f8a2e431651bc15b10df27" },
|
|
||||||
"nui.nvim": { "branch": "main", "commit": "f535005e6ad1016383f24e39559833759453564e" },
|
|
||||||
"nvim-dap": { "branch": "master", "commit": "8df427aeba0a06c6577dc3ab82de3076964e3b8d" },
|
|
||||||
"nvim-dap-python": { "branch": "master", "commit": "34282820bb713b9a5fdb120ae8dd85c2b3f49b51" },
|
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "4bc481b6f0c0cf3671fc894debd0e00347089a4e" },
|
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "28d480e0624b259095e56f353ec911f9f2a0f404" },
|
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "2c2b4eafce6cdd0cb165036faa17396eff18f847" },
|
|
||||||
"plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
|
|
||||||
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
|
|
||||||
"telescope.nvim": { "branch": "0.1.x", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
|
|
||||||
"venv-selector.nvim": { "branch": "regexp", "commit": "c677caa1030808a9f90092e522de7cc20c1390dd" }
|
|
||||||
}
|
|
@ -1,35 +0,0 @@
|
|||||||
-- Bootstrap lazy.nvim
|
|
||||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
|
||||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
|
||||||
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
|
||||||
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
|
||||||
if vim.v.shell_error ~= 0 then
|
|
||||||
vim.api.nvim_echo({
|
|
||||||
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
|
||||||
{ out, "WarningMsg" },
|
|
||||||
{ "\nPress any key to exit..." },
|
|
||||||
}, true, {})
|
|
||||||
vim.fn.getchar()
|
|
||||||
os.exit(1)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
vim.opt.rtp:prepend(lazypath)
|
|
||||||
|
|
||||||
-- Make sure to setup `mapleader` and `maplocalleader` before
|
|
||||||
-- loading lazy.nvim so that mappings are correct.
|
|
||||||
-- This is also a good place to setup other settings (vim.opt)
|
|
||||||
vim.g.mapleader = " "
|
|
||||||
vim.g.maplocalleader = "\\"
|
|
||||||
|
|
||||||
-- Setup lazy.nvim
|
|
||||||
require("lazy").setup({
|
|
||||||
spec = {
|
|
||||||
{ import = "plugins" },
|
|
||||||
},
|
|
||||||
-- Configure any other settings here. See the documentation for more details.
|
|
||||||
-- colorscheme that will be used when installing plugins.
|
|
||||||
install = { colorscheme = { "habamax" } },
|
|
||||||
-- automatically check for plugin updates
|
|
||||||
checker = { enabled = true },
|
|
||||||
})
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
|||||||
vim.g.mapleader = " "
|
|
||||||
|
|
||||||
vim.keymap.set("i", "jk", "<ESC>")
|
|
||||||
|
|
||||||
vim.keymap.set("n", "J", "5j")
|
|
||||||
vim.keymap.set("n", "K", "5k")
|
|
||||||
vim.keymap.set("n", "//", ":noh<CR>")
|
|
||||||
vim.keymap.set("n", "<Leader>w", ":w<CR>")
|
|
||||||
vim.keymap.set("n", "<Leader>q", ":q<CR>")
|
|
||||||
vim.keymap.set("n", "<Leader>t", ":tabnew<CR>")
|
|
||||||
|
|
||||||
vim.keymap.set("v", "J", "5j")
|
|
||||||
vim.keymap.set("v", "K", "5k")
|
|
||||||
vim.keymap.set("v", "p", "P")
|
|
||||||
|
|
||||||
vim.cmd("set mouse=a")
|
|
||||||
vim.cmd("set clipboard+=unnamedplus")
|
|
||||||
|
|
||||||
vim.cmd("set number")
|
|
||||||
vim.cmd("set cursorline")
|
|
||||||
vim.cmd("set hlsearch")
|
|
||||||
vim.cmd("set incsearch")
|
|
||||||
|
|
||||||
vim.cmd("set expandtab")
|
|
||||||
vim.cmd("set tabstop=2")
|
|
||||||
vim.cmd("set softtabstop=2")
|
|
||||||
vim.cmd("set shiftwidth=2")
|
|
||||||
vim.cmd("set cindent")
|
|
||||||
vim.cmd("set smarttab")
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"diagnostics.globals": [
|
|
||||||
"vim",
|
|
||||||
]
|
|
||||||
}
|
|
@ -1,10 +0,0 @@
|
|||||||
return {
|
|
||||||
"goolord/alpha-nvim",
|
|
||||||
dependencies = {
|
|
||||||
"echasnovski/mini.icons",
|
|
||||||
"nvim-lua/plenary.nvim",
|
|
||||||
},
|
|
||||||
config = function()
|
|
||||||
require("alpha").setup(require("alpha.themes.theta").config)
|
|
||||||
end,
|
|
||||||
}
|
|
@ -1,20 +0,0 @@
|
|||||||
local function setup()
|
|
||||||
require("catppuccin").setup({
|
|
||||||
flavour = "mocha",
|
|
||||||
transparent_background = true,
|
|
||||||
custom_highlights = function(colors)
|
|
||||||
return {
|
|
||||||
CursorLine = { bg = "#282828" },
|
|
||||||
}
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
vim.cmd("colorscheme catppuccin")
|
|
||||||
end
|
|
||||||
|
|
||||||
return {
|
|
||||||
"catppuccin/nvim",
|
|
||||||
name = "catppuccin",
|
|
||||||
priority = 1000,
|
|
||||||
config = setup,
|
|
||||||
}
|
|
||||||
|
|
@ -1,55 +0,0 @@
|
|||||||
return {
|
|
||||||
"saghen/blink.cmp",
|
|
||||||
-- optional: provides snippets for the snippet source
|
|
||||||
dependencies = { "rafamadriz/friendly-snippets" },
|
|
||||||
|
|
||||||
-- use a release tag to download pre-built binaries
|
|
||||||
version = "1.*",
|
|
||||||
-- AND/OR build from source, requires nightly: https://rust-lang.github.io/rustup/concepts/channels.html#working-with-nightly-rust
|
|
||||||
-- build = 'cargo build --release',
|
|
||||||
-- If you use nix, you can build from source using latest nightly rust with:
|
|
||||||
-- build = 'nix run .#build-plugin',
|
|
||||||
|
|
||||||
opts = {
|
|
||||||
-- 'default' (recommended) for mappings similar to built-in completions (C-y to accept)
|
|
||||||
-- 'super-tab' for mappings similar to vscode (tab to accept)
|
|
||||||
-- 'enter' for enter to accept
|
|
||||||
-- 'none' for no mappings
|
|
||||||
--
|
|
||||||
-- All presets have the following mappings:
|
|
||||||
-- C-space: Open menu or open docs if already open
|
|
||||||
-- C-n/C-p or Up/Down: Select next/previous item
|
|
||||||
-- C-e: Hide menu
|
|
||||||
-- C-k: Toggle signature help (if signature.enabled = true)
|
|
||||||
--
|
|
||||||
-- See :h blink-cmp-config-keymap for defining your own keymap
|
|
||||||
keymap = {
|
|
||||||
preset = "default",
|
|
||||||
["<C-k>"] = { "select_prev", "fallback" },
|
|
||||||
["<C-j>"] = { "select_next", "fallback" },
|
|
||||||
},
|
|
||||||
|
|
||||||
appearance = {
|
|
||||||
-- 'mono' (default) for 'Nerd Font Mono' or 'normal' for 'Nerd Font'
|
|
||||||
-- Adjusts spacing to ensure icons are aligned
|
|
||||||
nerd_font_variant = "mono",
|
|
||||||
},
|
|
||||||
|
|
||||||
-- (Default) Only show the documentation popup when manually triggered
|
|
||||||
completion = { documentation = { auto_show = false } },
|
|
||||||
|
|
||||||
-- Default list of enabled providers defined so that you can extend it
|
|
||||||
-- elsewhere in your config, without redefining it, due to `opts_extend`
|
|
||||||
sources = {
|
|
||||||
default = { "lsp", "path", "snippets", "buffer" },
|
|
||||||
},
|
|
||||||
|
|
||||||
-- (Default) Rust fuzzy matcher for typo resistance and significantly better performance
|
|
||||||
-- You may use a lua implementation instead by using `implementation = "lua"` or fallback to the lua implementation,
|
|
||||||
-- when the Rust fuzzy matcher is not available, by using `implementation = "prefer_rust"`
|
|
||||||
--
|
|
||||||
-- See the fuzzy documentation for more information
|
|
||||||
fuzzy = { implementation = "prefer_rust_with_warning" },
|
|
||||||
},
|
|
||||||
opts_extend = { "sources.default" },
|
|
||||||
}
|
|
@ -1,46 +0,0 @@
|
|||||||
local function mason_setup()
|
|
||||||
require("mason-lspconfig").setup({
|
|
||||||
automatic_enable = true,
|
|
||||||
ensure_installed = {
|
|
||||||
"clangd",
|
|
||||||
"lua_ls",
|
|
||||||
"pyright",
|
|
||||||
"rust_analyzer",
|
|
||||||
"ts_ls",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
local function nvim_lsp_setup()
|
|
||||||
vim.lsp.enable("clangd")
|
|
||||||
vim.lsp.enable("dartls")
|
|
||||||
vim.lsp.enable("lua_ls")
|
|
||||||
vim.lsp.enable("pyright")
|
|
||||||
vim.lsp.enable("rust_analyzer")
|
|
||||||
vim.lsp.enable("ts_ls")
|
|
||||||
|
|
||||||
vim.keymap.set("n", "<Leader><Enter>", vim.lsp.buf.hover, {})
|
|
||||||
vim.keymap.set("n", "<Leader>r", vim.lsp.buf.rename, {})
|
|
||||||
vim.keymap.set("n", "<Leader>i", vim.lsp.buf.format, {})
|
|
||||||
vim.keymap.set("n", "gd", vim.lsp.buf.definition, {})
|
|
||||||
vim.keymap.set("n", "gr", vim.lsp.buf.references, {})
|
|
||||||
vim.keymap.set("n", "gi", vim.lsp.buf.implementation, {})
|
|
||||||
vim.keymap.set({ "n", "v", "i" }, "<C-.>", vim.lsp.buf.code_action, {})
|
|
||||||
end
|
|
||||||
|
|
||||||
return {
|
|
||||||
{
|
|
||||||
"williamboman/mason.nvim",
|
|
||||||
config = function()
|
|
||||||
require("mason").setup()
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"williamboman/mason-lspconfig.nvim",
|
|
||||||
config = mason_setup,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"neovim/nvim-lspconfig",
|
|
||||||
config = nvim_lsp_setup,
|
|
||||||
},
|
|
||||||
}
|
|
@ -1,231 +0,0 @@
|
|||||||
local function setup()
|
|
||||||
-- Eviline config for lualine
|
|
||||||
-- Author: shadmansaleh
|
|
||||||
-- Credit: glepnir
|
|
||||||
local lualine = require('lualine')
|
|
||||||
|
|
||||||
-- Color table for highlights
|
|
||||||
-- stylua: ignore
|
|
||||||
local colors = {
|
|
||||||
bg = '#202328',
|
|
||||||
fg = '#bbc2cf',
|
|
||||||
yellow = '#ECBE7B',
|
|
||||||
cyan = '#008080',
|
|
||||||
darkblue = '#081633',
|
|
||||||
green = '#98be65',
|
|
||||||
orange = '#FF8800',
|
|
||||||
violet = '#a9a1e1',
|
|
||||||
magenta = '#c678dd',
|
|
||||||
blue = '#51afef',
|
|
||||||
red = '#ec5f67',
|
|
||||||
}
|
|
||||||
|
|
||||||
local conditions = {
|
|
||||||
buffer_not_empty = function()
|
|
||||||
return vim.fn.empty(vim.fn.expand('%:t')) ~= 1
|
|
||||||
end,
|
|
||||||
hide_in_width = function()
|
|
||||||
return vim.fn.winwidth(0) > 80
|
|
||||||
end,
|
|
||||||
check_git_workspace = function()
|
|
||||||
local filepath = vim.fn.expand('%:p:h')
|
|
||||||
local gitdir = vim.fn.finddir('.git', filepath .. ';')
|
|
||||||
return gitdir and #gitdir > 0 and #gitdir < #filepath
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
|
|
||||||
-- Config
|
|
||||||
local config = {
|
|
||||||
options = {
|
|
||||||
-- Disable sections and component separators
|
|
||||||
component_separators = '',
|
|
||||||
section_separators = '',
|
|
||||||
theme = {
|
|
||||||
-- We are going to use lualine_c an lualine_x as left and
|
|
||||||
-- right section. Both are highlighted by c theme . So we
|
|
||||||
-- are just setting default looks o statusline
|
|
||||||
normal = { c = { fg = colors.fg, bg = colors.bg } },
|
|
||||||
inactive = { c = { fg = colors.fg, bg = colors.bg } },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
sections = {
|
|
||||||
-- these are to remove the defaults
|
|
||||||
lualine_a = {},
|
|
||||||
lualine_b = {},
|
|
||||||
lualine_y = {},
|
|
||||||
lualine_z = {},
|
|
||||||
-- These will be filled later
|
|
||||||
lualine_c = {},
|
|
||||||
lualine_x = {},
|
|
||||||
},
|
|
||||||
inactive_sections = {
|
|
||||||
-- these are to remove the defaults
|
|
||||||
lualine_a = {},
|
|
||||||
lualine_b = {},
|
|
||||||
lualine_y = {},
|
|
||||||
lualine_z = {},
|
|
||||||
lualine_c = {},
|
|
||||||
lualine_x = {},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
-- Inserts a component in lualine_c at left section
|
|
||||||
local function ins_left(component)
|
|
||||||
table.insert(config.sections.lualine_c, component)
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Inserts a component in lualine_x at right section
|
|
||||||
local function ins_right(component)
|
|
||||||
table.insert(config.sections.lualine_x, component)
|
|
||||||
end
|
|
||||||
|
|
||||||
ins_left {
|
|
||||||
function()
|
|
||||||
return '▊'
|
|
||||||
end,
|
|
||||||
color = { fg = colors.blue }, -- Sets highlighting of component
|
|
||||||
padding = { left = 0, right = 1 }, -- We don't need space before this
|
|
||||||
}
|
|
||||||
|
|
||||||
ins_left {
|
|
||||||
-- mode component
|
|
||||||
function()
|
|
||||||
-- return ''
|
|
||||||
return '🦑'
|
|
||||||
end,
|
|
||||||
color = function()
|
|
||||||
-- auto change color according to neovims mode
|
|
||||||
local mode_color = {
|
|
||||||
n = colors.red,
|
|
||||||
i = colors.green,
|
|
||||||
v = colors.blue,
|
|
||||||
[''] = colors.blue,
|
|
||||||
V = colors.blue,
|
|
||||||
c = colors.magenta,
|
|
||||||
no = colors.red,
|
|
||||||
s = colors.orange,
|
|
||||||
S = colors.orange,
|
|
||||||
[''] = colors.orange,
|
|
||||||
ic = colors.yellow,
|
|
||||||
R = colors.violet,
|
|
||||||
Rv = colors.violet,
|
|
||||||
cv = colors.red,
|
|
||||||
ce = colors.red,
|
|
||||||
r = colors.cyan,
|
|
||||||
rm = colors.cyan,
|
|
||||||
['r?'] = colors.cyan,
|
|
||||||
['!'] = colors.red,
|
|
||||||
t = colors.red,
|
|
||||||
}
|
|
||||||
return { fg = mode_color[vim.fn.mode()] }
|
|
||||||
end,
|
|
||||||
padding = { right = 1 },
|
|
||||||
}
|
|
||||||
|
|
||||||
ins_left {
|
|
||||||
-- filesize component
|
|
||||||
'filesize',
|
|
||||||
cond = conditions.buffer_not_empty,
|
|
||||||
}
|
|
||||||
|
|
||||||
ins_left {
|
|
||||||
'filename',
|
|
||||||
cond = conditions.buffer_not_empty,
|
|
||||||
color = { fg = colors.magenta, gui = 'bold' },
|
|
||||||
}
|
|
||||||
|
|
||||||
ins_left { 'location' }
|
|
||||||
|
|
||||||
ins_left { 'progress', color = { fg = colors.fg, gui = 'bold' } }
|
|
||||||
|
|
||||||
ins_left {
|
|
||||||
'diagnostics',
|
|
||||||
sources = { 'nvim_diagnostic' },
|
|
||||||
symbols = { error = ' ', warn = ' ', info = ' ' },
|
|
||||||
diagnostics_color = {
|
|
||||||
error = { fg = colors.red },
|
|
||||||
warn = { fg = colors.yellow },
|
|
||||||
info = { fg = colors.cyan },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
-- Insert mid section. You can make any number of sections in neovim :)
|
|
||||||
-- for lualine it's any number greater then 2
|
|
||||||
ins_left {
|
|
||||||
function()
|
|
||||||
return '%='
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
|
|
||||||
ins_left {
|
|
||||||
-- Lsp server name .
|
|
||||||
function()
|
|
||||||
local msg = 'No Active Lsp'
|
|
||||||
local buf_ft = vim.api.nvim_get_option_value('filetype', { buf = 0 })
|
|
||||||
local clients = vim.lsp.get_clients()
|
|
||||||
if next(clients) == nil then
|
|
||||||
return msg
|
|
||||||
end
|
|
||||||
for _, client in ipairs(clients) do
|
|
||||||
local filetypes = client.config.filetypes
|
|
||||||
if filetypes and vim.fn.index(filetypes, buf_ft) ~= -1 then
|
|
||||||
return client.name
|
|
||||||
end
|
|
||||||
end
|
|
||||||
return msg
|
|
||||||
end,
|
|
||||||
icon = ' LSP:',
|
|
||||||
color = { fg = '#ffffff', gui = 'bold' },
|
|
||||||
}
|
|
||||||
|
|
||||||
-- Add components to right sections
|
|
||||||
-- ins_right {
|
|
||||||
-- 'o:encoding', -- option component same as &encoding in viml
|
|
||||||
-- fmt = string.upper, -- I'm not sure why it's upper case either ;)
|
|
||||||
-- cond = conditions.hide_in_width,
|
|
||||||
-- color = { fg = colors.green, gui = 'bold' },
|
|
||||||
-- }
|
|
||||||
|
|
||||||
-- ins_right {
|
|
||||||
-- 'fileformat',
|
|
||||||
-- fmt = string.upper,
|
|
||||||
-- icons_enabled = false, -- I think icons are cool but Eviline doesn't have them. sigh
|
|
||||||
-- color = { fg = colors.green, gui = 'bold' },
|
|
||||||
-- }
|
|
||||||
|
|
||||||
ins_right {
|
|
||||||
'branch',
|
|
||||||
icon = '',
|
|
||||||
color = { fg = colors.violet, gui = 'bold' },
|
|
||||||
}
|
|
||||||
|
|
||||||
ins_right {
|
|
||||||
'diff',
|
|
||||||
-- Is it me or the symbol for modified us really weird
|
|
||||||
symbols = { added = ' ', modified = ' ', removed = ' ' },
|
|
||||||
diff_color = {
|
|
||||||
added = { fg = colors.green },
|
|
||||||
modified = { fg = colors.orange },
|
|
||||||
removed = { fg = colors.red },
|
|
||||||
},
|
|
||||||
cond = conditions.hide_in_width,
|
|
||||||
}
|
|
||||||
|
|
||||||
ins_right {
|
|
||||||
function()
|
|
||||||
return '▊'
|
|
||||||
end,
|
|
||||||
color = { fg = colors.blue },
|
|
||||||
padding = { left = 1 },
|
|
||||||
}
|
|
||||||
|
|
||||||
-- Now don't forget to initialize lualine
|
|
||||||
lualine.setup(config)
|
|
||||||
end
|
|
||||||
|
|
||||||
return {
|
|
||||||
"nvim-lualine/lualine.nvim",
|
|
||||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
|
||||||
config = setup,
|
|
||||||
}
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
|||||||
local function setup()
|
|
||||||
vim.keymap.set("n", "<Leader>j", ":Neotree filesystem reveal left<CR>")
|
|
||||||
vim.keymap.set("n", "<Leader>b", ":Neotree buffers toggle bottom<CR>")
|
|
||||||
vim.keymap.set("n", "<Leader>J", ":Neotree filesystem close left<CR>")
|
|
||||||
vim.keymap.set("n", "<Leader>q", ":Neotree filesystem close left<CR>:q<CR>")
|
|
||||||
end
|
|
||||||
|
|
||||||
return {
|
|
||||||
"nvim-neo-tree/neo-tree.nvim",
|
|
||||||
branch = "v3.x",
|
|
||||||
dependencies = {
|
|
||||||
"nvim-lua/plenary.nvim",
|
|
||||||
"nvim-tree/nvim-web-devicons",
|
|
||||||
"MunifTanjim/nui.nvim",
|
|
||||||
},
|
|
||||||
lazy = false,
|
|
||||||
config = setup,
|
|
||||||
}
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
|||||||
local function setup()
|
|
||||||
local null_ls = require("null-ls")
|
|
||||||
null_ls.setup({
|
|
||||||
sources = {
|
|
||||||
null_ls.builtins.formatting.stylua,
|
|
||||||
null_ls.builtins.formatting.prettier,
|
|
||||||
null_ls.builtins.formatting.black,
|
|
||||||
null_ls.builtins.formatting.isort,
|
|
||||||
null_ls.builtins.diagnostics.eslint,
|
|
||||||
null_ls.builtins.completion.spell,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
return {
|
|
||||||
"nvimtools/none-ls.nvim",
|
|
||||||
config = setup,
|
|
||||||
}
|
|
@ -1,49 +0,0 @@
|
|||||||
local function setup_telescope()
|
|
||||||
local builtin = require("telescope.builtin")
|
|
||||||
vim.keymap.set("n", "<Leader>f", builtin.find_files)
|
|
||||||
vim.keymap.set("n", "<Leader>g", builtin.live_grep)
|
|
||||||
end
|
|
||||||
|
|
||||||
local function setup_select()
|
|
||||||
-- This is your opts table
|
|
||||||
require("telescope").setup {
|
|
||||||
extensions = {
|
|
||||||
["ui-select"] = {
|
|
||||||
require("telescope.themes").get_dropdown {
|
|
||||||
-- even more opts
|
|
||||||
}
|
|
||||||
|
|
||||||
-- pseudo code / specification for writing custom displays, like the one
|
|
||||||
-- for "codeactions"
|
|
||||||
-- specific_opts = {
|
|
||||||
-- [kind] = {
|
|
||||||
-- make_indexed = function(items) -> indexed_items, width,
|
|
||||||
-- make_displayer = function(widths) -> displayer
|
|
||||||
-- make_display = function(displayer) -> function(e)
|
|
||||||
-- make_ordinal = function(e) -> string
|
|
||||||
-- },
|
|
||||||
-- -- for example to disable the custom builtin "codeactions" display
|
|
||||||
-- do the following
|
|
||||||
-- codeactions = false,
|
|
||||||
-- }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-- To get ui-select loaded and working with telescope, you need to call
|
|
||||||
-- load_extension, somewhere after setup function:
|
|
||||||
require("telescope").load_extension("ui-select")
|
|
||||||
end
|
|
||||||
|
|
||||||
return {
|
|
||||||
{
|
|
||||||
"nvim-telescope/telescope.nvim",
|
|
||||||
branch = "0.1.x",
|
|
||||||
dependencies = { "nvim-lua/plenary.nvim" },
|
|
||||||
config = setup_telescope,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"nvim-telescope/telescope-ui-select.nvim",
|
|
||||||
config = setup_select,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
@ -1,38 +0,0 @@
|
|||||||
local function setup()
|
|
||||||
local configs = require("nvim-treesitter.configs")
|
|
||||||
configs.setup({
|
|
||||||
ensure_installed = {
|
|
||||||
"bash",
|
|
||||||
"c",
|
|
||||||
"cpp",
|
|
||||||
"dart",
|
|
||||||
"dockerfile",
|
|
||||||
"gitignore",
|
|
||||||
"go",
|
|
||||||
"html",
|
|
||||||
"java",
|
|
||||||
"javascript",
|
|
||||||
"json",
|
|
||||||
"kotlin",
|
|
||||||
"lua",
|
|
||||||
"python",
|
|
||||||
"rust",
|
|
||||||
"sql",
|
|
||||||
"toml",
|
|
||||||
"tsx",
|
|
||||||
"typescript",
|
|
||||||
"xml",
|
|
||||||
"yaml",
|
|
||||||
},
|
|
||||||
sync_install = true,
|
|
||||||
highlight = { enable = true },
|
|
||||||
indent = { enable = true },
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
return {
|
|
||||||
"nvim-treesitter/nvim-treesitter",
|
|
||||||
build = ":TSUpdate",
|
|
||||||
config = setup,
|
|
||||||
}
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
|||||||
return {
|
|
||||||
"linux-cultist/venv-selector.nvim",
|
|
||||||
dependencies = {
|
|
||||||
"neovim/nvim-lspconfig",
|
|
||||||
"mfussenegger/nvim-dap", "mfussenegger/nvim-dap-python", --optional
|
|
||||||
{ "nvim-telescope/telescope.nvim", branch = "0.1.x", dependencies = { "nvim-lua/plenary.nvim" } },
|
|
||||||
},
|
|
||||||
lazy = false,
|
|
||||||
branch = "regexp", -- This is the regexp branch, use this for the new version
|
|
||||||
keys = {
|
|
||||||
-- { ",v", "<cmd>VenvSelect<cr>" },
|
|
||||||
},
|
|
||||||
opts = {
|
|
||||||
-- Your settings go here
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
85
vim/.vimrc
85
vim/.vimrc
@ -1,58 +1,15 @@
|
|||||||
" Setup vim plug
|
|
||||||
call plug#begin()
|
|
||||||
Plug 'easymotion/vim-easymotion'
|
|
||||||
Plug 'preservim/nerdtree'
|
|
||||||
Plug 'preservim/tagbar'
|
|
||||||
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
|
|
||||||
Plug 'junegunn/fzf.vim'
|
|
||||||
Plug 'rking/ag.vim'
|
|
||||||
Plug 'tpope/vim-commentary'
|
|
||||||
call plug#end()
|
|
||||||
|
|
||||||
" Set leader
|
|
||||||
let mapleader=" "
|
|
||||||
|
|
||||||
" Faster ESC
|
|
||||||
imap jk <ESC>
|
|
||||||
|
|
||||||
" Faster move
|
|
||||||
nmap J 5j
|
|
||||||
nmap K 5k
|
|
||||||
|
|
||||||
" Faster save and quit
|
|
||||||
nmap <Leader>w :w<CR>
|
|
||||||
nmap <Leader>q :q<CR>
|
|
||||||
nmap <Leader>x :x<CR>
|
|
||||||
|
|
||||||
" Split window
|
|
||||||
nmap <Leader>v :vsplit<CR>
|
|
||||||
nmap <Leader>s :split<CR>
|
|
||||||
nmap <Leader>j <C-w>j
|
|
||||||
nmap <Leader>k <C-w>k
|
|
||||||
nmap <Leader>h <C-w>h
|
|
||||||
nmap <Leader>l <C-w>l
|
|
||||||
nmap <Leader>J <C-w>J
|
|
||||||
nmap <Leader>K <C-w>K
|
|
||||||
nmap <Leader>H <C-w>H
|
|
||||||
nmap <Leader>L <C-w>L
|
|
||||||
|
|
||||||
|
|
||||||
" c: visual 模式啟用滑鼠
|
" c: visual 模式啟用滑鼠
|
||||||
" i: insert 模式啟用滑鼠
|
" i: insert 模式啟用滑鼠
|
||||||
set mouse=ci
|
set mouse=ci
|
||||||
|
|
||||||
" 顯示行數
|
" 顯示行數
|
||||||
set number
|
set number
|
||||||
set relativenumber
|
|
||||||
set cursorline
|
set cursorline
|
||||||
|
|
||||||
" Highlight 所有搜尋
|
" Highlight 所有搜尋
|
||||||
" `:noh` 可以關閉搜尋 highlight 直到下次搜尋
|
" `:noh` 可以關閉搜尋 highlight 直到下次搜尋
|
||||||
set hlsearch
|
set hlsearch
|
||||||
|
|
||||||
" // 關閉搜尋 highlight
|
|
||||||
nmap // :noh<CR>
|
|
||||||
|
|
||||||
" 邊輸入邊搜尋
|
" 邊輸入邊搜尋
|
||||||
set incsearch
|
set incsearch
|
||||||
|
|
||||||
@ -71,28 +28,34 @@ set shiftwidth=4
|
|||||||
set cindent
|
set cindent
|
||||||
set smarttab
|
set smarttab
|
||||||
|
|
||||||
" <Leader>n 切換行數顯示
|
" Ctrl+S 存檔
|
||||||
nmap <Leader>n :call ToggleLineNumber()<CR>
|
map <C-s> :w<CR>
|
||||||
|
imap <C-s> <ESC><C-s>a
|
||||||
|
|
||||||
|
" Ctrl+W 離開
|
||||||
|
map <C-w> :q<CR>
|
||||||
|
imap <C-w> <ESC><C-w>
|
||||||
|
|
||||||
|
" Ctrl+X 剪下整行
|
||||||
|
map <C-x> dd
|
||||||
|
imap <C-x> <ESC><C-x>a
|
||||||
|
|
||||||
|
" Ctrl+C 複製整行
|
||||||
|
map <C-c> yy
|
||||||
|
imap <C-c> <ESC><C-c>a
|
||||||
|
|
||||||
|
" Ctrl+V 貼上
|
||||||
|
map <C-v> Pj
|
||||||
|
imap <C-v> <ESC><C-v>a
|
||||||
|
|
||||||
|
" Ctrl+L 切換行數顯示
|
||||||
|
map <C-l> <ESC>:call ToggleLineNumber()<CR>
|
||||||
|
imap <C-l> <ESC><C-l>a
|
||||||
function ToggleLineNumber()
|
function ToggleLineNumber()
|
||||||
if (&number == 0)
|
if (&number == 0)
|
||||||
set number
|
set number
|
||||||
set relativenumber
|
|
||||||
else
|
else
|
||||||
set nonumber
|
set nonumber
|
||||||
set norelativenumber
|
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" NERDTree
|
|
||||||
nmap <Leader>f :NERDTreeToggle<CR>
|
|
||||||
|
|
||||||
" Tagbar
|
|
||||||
nmap <Leader>t :TagbarToggle<CR>
|
|
||||||
|
|
||||||
" FZF
|
|
||||||
nmap <Leader>g :Files<CR>
|
|
||||||
|
|
||||||
" Commentary
|
|
||||||
nmap <Leader>/ gcc
|
|
||||||
vmap <Leader>/ gc
|
|
||||||
|
|
||||||
|
@ -1,114 +0,0 @@
|
|||||||
// Place your key bindings in this file to override the defaults
|
|
||||||
[
|
|
||||||
// Editor switch
|
|
||||||
{
|
|
||||||
"key": "ctrl-shift-j",
|
|
||||||
"command": "workbench.action.nextEditorInGroup",
|
|
||||||
"when": "editorTextFocus && !editorReadonly && vim.active"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "ctrl-shift-k",
|
|
||||||
"command": "workbench.action.previousEditorInGroup",
|
|
||||||
"when": "editorTextFocus && !editorReadonly && vim.active"
|
|
||||||
},
|
|
||||||
// Move lines up and down
|
|
||||||
{
|
|
||||||
"key": "alt+j",
|
|
||||||
"command": "editor.action.moveLinesDownAction",
|
|
||||||
"when": "editorTextFocus && !editorReadonly && vim.active"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "alt+k",
|
|
||||||
"command": "editor.action.moveLinesUpAction",
|
|
||||||
"when": "editorTextFocus && !editorReadonly && vim.active"
|
|
||||||
},
|
|
||||||
// Select up and down
|
|
||||||
{
|
|
||||||
"key": "ctrl+j",
|
|
||||||
"command": "selectNextSuggestion",
|
|
||||||
"when": "suggestWidgetVisible"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "ctrl+k",
|
|
||||||
"command": "selectPrevSuggestion",
|
|
||||||
"when": "suggestWidgetVisible"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "ctrl+j",
|
|
||||||
"command": "selectNextCodeAction",
|
|
||||||
"when": "codeActionMenuVisible"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "ctrl+k",
|
|
||||||
"command": "selectPrevCodeAction",
|
|
||||||
"when": "codeActionMenuVisible"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "ctrl+j",
|
|
||||||
"command": "workbench.action.quickOpenSelectNext",
|
|
||||||
"when": "inQuickOpen"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "ctrl+k",
|
|
||||||
"command": "workbench.action.quickOpenSelectPrevious",
|
|
||||||
"when": "inQuickOpen"
|
|
||||||
},
|
|
||||||
// Code suggest and quick fix
|
|
||||||
{
|
|
||||||
"key": "ctrl+/",
|
|
||||||
"command": "editor.action.triggerSuggest",
|
|
||||||
"when": "editorTextFocus && !editorReadonly && vim.active"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "ctrl+.",
|
|
||||||
"command": "editor.action.quickFix",
|
|
||||||
"when": "editorTextFocus && !editorReadonly && vim.active"
|
|
||||||
},
|
|
||||||
// File management
|
|
||||||
{
|
|
||||||
"key": "ctrl+n",
|
|
||||||
"command": "explorer.newFile",
|
|
||||||
"when": "explorerViewletFocus"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "ctrl+shift+n",
|
|
||||||
"command": "explorer.newFolder",
|
|
||||||
"when": "explorerViewletFocus"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "escape",
|
|
||||||
"command": "workbench.action.toggleSidebarVisibility",
|
|
||||||
"when": "explorerViewletFocus"
|
|
||||||
},
|
|
||||||
// Terminal management
|
|
||||||
{
|
|
||||||
"key": "ctrl+shift+;",
|
|
||||||
"command": "workbench.action.terminal.toggleTerminal"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "ctrl+shift+n",
|
|
||||||
"command": "workbench.action.terminal.new",
|
|
||||||
"when": "terminalFocus"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "ctrl+shift+w",
|
|
||||||
"command": "workbench.action.terminal.kill",
|
|
||||||
"when": "terminalFocus"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "ctrl+shift+j",
|
|
||||||
"command": "workbench.action.terminal.focusNext",
|
|
||||||
"when": "terminalFocus"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "ctrl+shift+k",
|
|
||||||
"command": "workbench.action.terminal.focusPrevious",
|
|
||||||
"when": "terminalFocus"
|
|
||||||
},
|
|
||||||
// Outline
|
|
||||||
{
|
|
||||||
"key": "escape",
|
|
||||||
"command": "workbench.action.toggleSidebarVisibility",
|
|
||||||
"when": "view.outline.visible"
|
|
||||||
}
|
|
||||||
]
|
|
@ -1,280 +0,0 @@
|
|||||||
{
|
|
||||||
"workbench.iconTheme": "material-icon-theme",
|
|
||||||
"editor.fontFamily": "'Hack Nerd Font Mono', 'Droid Sans Mono', 'monospace', monospace",
|
|
||||||
"terminal.integrated.fontFamily": "Hack Nerd Font Mono",
|
|
||||||
"dart.previewFlutterUiGuides": true,
|
|
||||||
"dart.previewFlutterUiGuidesCustomTracking": true,
|
|
||||||
"workbench.productIconTheme": "material-product-icons",
|
|
||||||
"window.menuBarVisibility": "toggle",
|
|
||||||
"dart.debugExternalPackageLibraries": false,
|
|
||||||
"dart.debugSdkLibraries": false,
|
|
||||||
"tabnine.experimentalAutoImports": true,
|
|
||||||
"markdown-preview-enhanced.previewTheme": "github-dark.css",
|
|
||||||
"files.associations": {
|
|
||||||
"*.css": "tailwindcss"
|
|
||||||
},
|
|
||||||
"tabnine.codeLensEnabled": false,
|
|
||||||
"markdownlint.config": {
|
|
||||||
"MD024": false
|
|
||||||
},
|
|
||||||
"editor.minimap.enabled": false,
|
|
||||||
// Vim settings
|
|
||||||
"extensions.experimental.affinity": {
|
|
||||||
"vscodevim.vim": 1,
|
|
||||||
"asvetliakov.vscode-neovim": 1
|
|
||||||
},
|
|
||||||
"vim.leader": "<Space>",
|
|
||||||
"vim.hlsearch": true,
|
|
||||||
"vim.easymotion": true,
|
|
||||||
"vim.useSystemClipboard": true,
|
|
||||||
"vim.smartRelativeLine": true,
|
|
||||||
"vim.statusBarColorControl": false,
|
|
||||||
"vim.ignorecase": true,
|
|
||||||
"vim.normalModeKeyBindings": [
|
|
||||||
{
|
|
||||||
"before": [
|
|
||||||
"J"
|
|
||||||
],
|
|
||||||
"after": [
|
|
||||||
"5",
|
|
||||||
"j"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"before": [
|
|
||||||
"K"
|
|
||||||
],
|
|
||||||
"after": [
|
|
||||||
"5",
|
|
||||||
"k"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"before": [
|
|
||||||
"/",
|
|
||||||
"/"
|
|
||||||
],
|
|
||||||
"commands": [
|
|
||||||
":noh"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"before": [
|
|
||||||
"<Leader>",
|
|
||||||
"w"
|
|
||||||
],
|
|
||||||
"commands": [
|
|
||||||
":w"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"before": [
|
|
||||||
"<Leader>",
|
|
||||||
"q"
|
|
||||||
],
|
|
||||||
"commands": [
|
|
||||||
":q"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"before": [
|
|
||||||
"<Leader>",
|
|
||||||
"i"
|
|
||||||
],
|
|
||||||
"commands": [
|
|
||||||
"editor.action.formatDocument"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"before": [
|
|
||||||
"<Leader>",
|
|
||||||
"s"
|
|
||||||
],
|
|
||||||
"commands": [
|
|
||||||
"workbench.action.splitEditorDown"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"before": [
|
|
||||||
"<Leader>",
|
|
||||||
"v"
|
|
||||||
],
|
|
||||||
"commands": [
|
|
||||||
"workbench.action.splitEditorRight"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"before": [
|
|
||||||
"<Leader>",
|
|
||||||
"j"
|
|
||||||
],
|
|
||||||
"commands": [
|
|
||||||
"workbench.action.focusBelowGroup"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"before": [
|
|
||||||
"<Leader>",
|
|
||||||
"k"
|
|
||||||
],
|
|
||||||
"commands": [
|
|
||||||
"workbench.action.focusAboveGroup"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"before": [
|
|
||||||
"<Leader>",
|
|
||||||
"h"
|
|
||||||
],
|
|
||||||
"commands": [
|
|
||||||
"workbench.action.focusLeftGroup"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"before": [
|
|
||||||
"<Leader>",
|
|
||||||
"l"
|
|
||||||
],
|
|
||||||
"commands": [
|
|
||||||
"workbench.action.focusRightGroup"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"before": [
|
|
||||||
"<Leader>",
|
|
||||||
"J"
|
|
||||||
],
|
|
||||||
"commands": [
|
|
||||||
"workbench.action.moveEditorToBelowGroup"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"before": [
|
|
||||||
"<Leader>",
|
|
||||||
"K"
|
|
||||||
],
|
|
||||||
"commands": [
|
|
||||||
"workbench.action.moveEditorToAboveGroup"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"before": [
|
|
||||||
"<Leader>",
|
|
||||||
"H"
|
|
||||||
],
|
|
||||||
"commands": [
|
|
||||||
"workbench.action.moveEditorToLeftGroup"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"before": [
|
|
||||||
"<Leader>",
|
|
||||||
"L"
|
|
||||||
],
|
|
||||||
"commands": [
|
|
||||||
"workbench.action.moveEditorToRightGroup"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"before": [
|
|
||||||
"<Leader>",
|
|
||||||
"r"
|
|
||||||
],
|
|
||||||
"commands": [
|
|
||||||
"editor.action.rename"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"before": [
|
|
||||||
"<Leader>",
|
|
||||||
"g"
|
|
||||||
],
|
|
||||||
"commands": [
|
|
||||||
"workbench.action.quickOpen"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"before": [
|
|
||||||
"<Leader>",
|
|
||||||
"f"
|
|
||||||
],
|
|
||||||
"commands": [
|
|
||||||
"workbench.files.action.showActiveFileInExplorer"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"before": [
|
|
||||||
"<Leader>",
|
|
||||||
";"
|
|
||||||
],
|
|
||||||
"commands": [
|
|
||||||
"editor.action.showHover"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"before": [
|
|
||||||
"<Leader>",
|
|
||||||
"<Enter>"
|
|
||||||
],
|
|
||||||
"commands": [
|
|
||||||
"editor.action.revealDefinition"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"before": [
|
|
||||||
"<Tab>"
|
|
||||||
],
|
|
||||||
"after": [
|
|
||||||
">",
|
|
||||||
">"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"before": [
|
|
||||||
"<S-Tab>"
|
|
||||||
],
|
|
||||||
"after": [
|
|
||||||
"<",
|
|
||||||
"<"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"vim.insertModeKeyBindings": [
|
|
||||||
{
|
|
||||||
"before": [
|
|
||||||
"j",
|
|
||||||
"k"
|
|
||||||
],
|
|
||||||
"after": [
|
|
||||||
"<Esc>"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"vim.visualModeKeyBindings": [
|
|
||||||
{
|
|
||||||
"before": [
|
|
||||||
"<Tab>"
|
|
||||||
],
|
|
||||||
"commands": [
|
|
||||||
"editor.action.indentLines"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"before": [
|
|
||||||
"<S-Tab>"
|
|
||||||
],
|
|
||||||
"commands": [
|
|
||||||
"editor.action.outdentLines"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"before": [
|
|
||||||
"p"
|
|
||||||
],
|
|
||||||
"commands": [
|
|
||||||
"editor.action.clipboardPasteAction",
|
|
||||||
"extension.vim_escape"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user