Add screenkey

This commit is contained in:
2025-07-27 00:00:44 -07:00
parent ccb15a9a4a
commit e2e2cbd535
3 changed files with 98 additions and 9 deletions

View File

@@ -1,19 +1,29 @@
require('config.lazy') require('config.lazy')
vim.lsp.enable("rust_analyzer") vim.lsp.enable({
vim.lsp.enable("jdtls") rust_analyzer,
vim.lsp.enable("clangd") jdtls,
vim.lsp.enable("csharp_ls") qmlls,
vim.lsp.enable("lua_ls") clangd,
vim.lsp.enable("html") csharp_ls,
vim.lsp.enable("ts_ls") lua_ls,
vim.lsp.enable("css_ls") html,
vim.lsp.enable("tinymist") ts_ls,
css_ls,
tinymist,
})
vim.keymap.set({'n', 'x', 'o'}, ',', vim.diagnostic.open_float) vim.keymap.set({'n', 'x', 'o'}, ',', vim.diagnostic.open_float)
vim.keymap.set({'n', 'x', 'o', 'i'}, '<c-s>', "<cmd>up<cr>") vim.keymap.set({'n', 'x', 'o', 'i'}, '<c-s>', "<cmd>up<cr>")
if vim.g.neovide then
vim.g.neovide_padding_top = 6
vim.g.neovide_padding_bottom = 6
vim.g.neovide_padding_right = 6
vim.g.neovide_padding_left = 6
end
vim.cmd([[ vim.cmd([[
no e <c-r> no e <c-r>
no : , no : ,
@@ -46,6 +56,7 @@ vim.cmd([[
ino <c-t> <c-o>: ino <c-t> <c-o>:
cno <c-h> <esc> cno <c-h> <esc>
no + " no + "
vn P v`[v`]
no <c-f> / no <c-f> /
nn <enter> :noh<enter> nn <enter> :noh<enter>

View File

@@ -0,0 +1,3 @@
return {
'andweeb/presence.nvim'
}

View File

@@ -0,0 +1,75 @@
return {
'NStefan002/screenkey.nvim',
opts = {
win_opts = {
row = vim.o.lines - vim.o.cmdheight - 2,
col = vim.o.columns - 1,
relative = "editor",
anchor = "SE",
width = 40,
height = 3,
border = "single",
title = "Screenkey",
title_pos = "center",
style = "minimal",
focusable = false,
noautocmd = true,
},
hl_groups = {
["screenkey.hl.key"] = { link = "Normal" },
["screenkey.hl.map"] = { link = "Normal" },
["screenkey.hl.sep"] = { link = "Normal" },
},
compress_after = 3,
clear_after = 3,
emit_events = true,
disable = {
filetypes = {},
buftypes = {},
},
show_leader = true,
group_mappings = false,
display_infront = {},
display_behind = {},
filter = function(keys)
return keys
end,
colorize = function(keys)
return keys
end,
separator = " ",
keys = {
["<TAB>"] = "󰌒",
["<CR>"] = "󰌑",
["<ESC>"] = "Esc",
["<SPACE>"] = "",
["<BS>"] = "󰌥",
["<DEL>"] = "Del",
["<LEFT>"] = "",
["<RIGHT>"] = "",
["<UP>"] = "",
["<DOWN>"] = "",
["<HOME>"] = "Home",
["<END>"] = "End",
["<PAGEUP>"] = "PgUp",
["<PAGEDOWN>"] = "PgDn",
["<INSERT>"] = "Ins",
["<F1>"] = "󱊫",
["<F2>"] = "󱊬",
["<F3>"] = "󱊭",
["<F4>"] = "󱊮",
["<F5>"] = "󱊯",
["<F6>"] = "󱊰",
["<F7>"] = "󱊱",
["<F8>"] = "󱊲",
["<F9>"] = "󱊳",
["<F10>"] = "󱊴",
["<F11>"] = "󱊵",
["<F12>"] = "󱊶",
["CTRL"] = "Ctrl",
["ALT"] = "Alt",
["SUPER"] = "󰘳",
["<leader>"] = "<leader>",
}
}
}