Add keymap to delete line with selected word in the file and configure lspkind symbols
This commit is contained in:
parent
ef91f14af8
commit
a9de446ed3
6 changed files with 99 additions and 18 deletions
|
|
@ -55,6 +55,9 @@ keymap("n", "<leader>ch", "<cmd>silent !tmux neww tmux-cht.sh<CR>", { desc = "[C
|
|||
|
||||
-- replace selected word in the file
|
||||
keymap("n", "<leader>R", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]], { desc = "[R]eplace words in the file" })
|
||||
-- delete line with selected in the file
|
||||
keymap("n", "<leader>dl", [[:g/\<<C-r><C-w>\>/d]],
|
||||
{ desc = "[D]elete [L]ine with selected word in the file" })
|
||||
|
||||
-- Make file executable
|
||||
keymap("n", "<leader>x", "<cmd>!chmod +x %<CR>", { silent = true, desc = "Make [X]ecutable file" })
|
||||
|
|
|
|||
47
after/plugin/lspkind.lua
Normal file
47
after/plugin/lspkind.lua
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
require('lspkind').init({
|
||||
-- DEPRECATED (use mode instead): enables text annotations
|
||||
--
|
||||
-- default: true
|
||||
-- with_text = true,
|
||||
|
||||
-- defines how annotations are shown
|
||||
-- default: symbol
|
||||
-- options: 'text', 'text_symbol', 'symbol_text', 'symbol'
|
||||
mode = 'symbol_text',
|
||||
-- default symbol map
|
||||
-- can be either 'default' (requires nerd-fonts font) or
|
||||
-- 'codicons' for codicon preset (requires vscode-codicons font)
|
||||
--
|
||||
-- default: 'default'
|
||||
preset = 'codicons',
|
||||
-- override preset symbols
|
||||
--
|
||||
-- default: {}
|
||||
symbol_map = {
|
||||
Text = "",
|
||||
Method = "",
|
||||
Function = "",
|
||||
Constructor = "",
|
||||
Field = "ﰠ",
|
||||
Variable = "",
|
||||
Class = "ﴯ",
|
||||
Interface = "",
|
||||
Module = "",
|
||||
Property = "ﰠ",
|
||||
Unit = "塞",
|
||||
Value = "",
|
||||
Enum = "",
|
||||
Keyword = "",
|
||||
Snippet = "",
|
||||
Color = "",
|
||||
File = "",
|
||||
Reference = "",
|
||||
Folder = "",
|
||||
EnumMember = "",
|
||||
Constant = "",
|
||||
Struct = "פּ",
|
||||
Event = "",
|
||||
Operator = "",
|
||||
TypeParameter = ""
|
||||
},
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue