feat: add websearch to anyrun
This commit is contained in:
commit
5b23af991f
11 changed files with 129 additions and 19 deletions
|
|
@ -14,4 +14,3 @@ TEXMFHOME=$HOME/.texmf
|
|||
PATH=/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:$HOME/.local/bin:$HOME/.cargo/bin:$PATH
|
||||
EDITOR=nv
|
||||
SUDO_EDITOR=nv
|
||||
RADV_PERFTEST=gpl
|
||||
|
|
|
|||
|
|
@ -5,3 +5,5 @@ file:///home/dashie/gits
|
|||
file:///home/dashie/gits/ost-4semester
|
||||
file:///home/dashie/gits/ost-3semester
|
||||
file:///home/dashie/Documents/OST%204.semester
|
||||
file:///drive2
|
||||
file:///drive2/animu
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
xmlns:bookmark="http://www.freedesktop.org/standards/desktop-bookmarks"
|
||||
xmlns:mime="http://www.freedesktop.org/standards/shared-mime-info"
|
||||
>
|
||||
<bookmark href="smb://192.168.1.4/" added="2023-02-05T22:38:29.299667Z" modified="2023-02-28T00:19:16.085575Z" visited="2023-02-28T00:19:16.085569Z">
|
||||
<bookmark href="smb://192.168.1.4/" added="2023-02-05T22:38:29.299667Z" modified="2023-04-19T09:28:46.298282Z" visited="2023-04-19T09:28:46.298275Z">
|
||||
<title>Windows shares on 192.168.1.4</title>
|
||||
<info>
|
||||
<metadata owner="http://freedesktop.org">
|
||||
<bookmark:applications>
|
||||
<bookmark:application name="org.gnome.Nautilus" exec="'org.gnome.Nautilus %u'" modified="2023-02-28T00:19:16.085571Z" count="3"/>
|
||||
<bookmark:application name="org.gnome.Nautilus" exec="'org.gnome.Nautilus %u'" modified="2023-04-19T09:28:46.298278Z" count="4"/>
|
||||
</bookmark:applications>
|
||||
</metadata>
|
||||
</info>
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
monitor_name = 'whatever'
|
||||
utility_command = "echo 'henlo' ;; echo 'pingpang'"
|
||||
css_string = "/home/dashie/.config/hypr/hyprstyle.css"
|
||||
|
|
|
|||
3
hypr_desktop/hyprstyle.css
Normal file
3
hypr_desktop/hyprstyle.css
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#MainWindow {
|
||||
border-radius: 10px;
|
||||
}
|
||||
67
hypr_desktop/monitors/1.json
Normal file
67
hypr_desktop/monitors/1.json
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
[{
|
||||
"id": 0,
|
||||
"name": "DP-1",
|
||||
"description": "ASUSTek COMPUTER INC XG349C (DP-1)",
|
||||
"make": "ASUSTek COMPUTER INC",
|
||||
"model": "XG349C",
|
||||
"serial": "",
|
||||
"width": 3440,
|
||||
"height": 1440,
|
||||
"refreshRate": 179.998993,
|
||||
"x": 2560,
|
||||
"y": 0,
|
||||
"activeWorkspace": {
|
||||
"id": 2,
|
||||
"name": "2"
|
||||
},
|
||||
"reserved": [0, 30, 0, 0],
|
||||
"scale": 1.00,
|
||||
"transform": 0,
|
||||
"focused": false,
|
||||
"dpmsStatus": true,
|
||||
"vrr": true
|
||||
},{
|
||||
"id": 1,
|
||||
"name": "DP-2",
|
||||
"description": "Lenovo Group Limited LEN LT2452pwC 0x33344B41 (DP-2)",
|
||||
"make": "Lenovo Group Limited",
|
||||
"model": "LEN LT2452pwC",
|
||||
"serial": "0x33344B41",
|
||||
"width": 1920,
|
||||
"height": 1200,
|
||||
"refreshRate": 59.950001,
|
||||
"x": 6000,
|
||||
"y": 0,
|
||||
"activeWorkspace": {
|
||||
"id": 3,
|
||||
"name": "3"
|
||||
},
|
||||
"reserved": [0, 0, 0, 0],
|
||||
"scale": 1.00,
|
||||
"transform": 1,
|
||||
"focused": false,
|
||||
"dpmsStatus": true,
|
||||
"vrr": false
|
||||
},{
|
||||
"id": 2,
|
||||
"name": "DP-3",
|
||||
"description": "ASUSTek COMPUTER INC ROG PG278QR #ASOWXFZDWU/d (DP-3)",
|
||||
"make": "ASUSTek COMPUTER INC",
|
||||
"model": "ROG PG278QR",
|
||||
"serial": "#ASOWXFZDWU/d",
|
||||
"width": 2560,
|
||||
"height": 1440,
|
||||
"refreshRate": 165.000000,
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"activeWorkspace": {
|
||||
"id": 1,
|
||||
"name": "1"
|
||||
},
|
||||
"reserved": [0, 0, 0, 0],
|
||||
"scale": 1.00,
|
||||
"transform": 0,
|
||||
"focused": true,
|
||||
"dpmsStatus": true,
|
||||
"vrr": false
|
||||
}]
|
||||
12
nvim/ftplugin/rust.lua
Normal file
12
nvim/ftplugin/rust.lua
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
local rt = require("rust-tools")
|
||||
|
||||
rt.setup({
|
||||
server = {
|
||||
on_attach = function(_, bufnr)
|
||||
-- Hover actions
|
||||
vim.keymap.set("n", "<C-space>", rt.hover_actions.hover_actions, { buffer = bufnr })
|
||||
-- Code action groups
|
||||
vim.keymap.set("n", "<Leader>a", rt.code_action_group.code_action_group, { buffer = bufnr })
|
||||
end,
|
||||
},
|
||||
})
|
||||
|
|
@ -53,6 +53,7 @@
|
|||
"nvim-web-devicons": { "branch": "master", "commit": "4ec26d67d419c12a4abaea02f1b6c57b40c08d7e" },
|
||||
"persistence.nvim": { "branch": "main", "commit": "c814fae5c37aa0aba9cd9da05df6e52b88d612c3" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "9ac3e9541bbabd9d73663d757e4fe48a675bb054" },
|
||||
"rust-tools.nvim": { "branch": "master", "commit": "71d2cf67b5ed120a0e31b2c8adb210dd2834242f" },
|
||||
"tailwindcss-colorizer-cmp.nvim": { "branch": "main", "commit": "f044050da3ec6e1cdb31985beecec6810cc27f0b" },
|
||||
"telescope-file-browser.nvim": { "branch": "master", "commit": "e0fcb12702ad0d2873544a31730f9aaef04fd032" },
|
||||
"telescope-project.nvim": { "branch": "master", "commit": "fa081e35ba7397e5147a51ece693aa3afda167fc" },
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
-- maps are automatically loaded on the VeryLazy event
|
||||
-- Default maps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/maps.lua
|
||||
-- Add any additional maps here
|
||||
|
||||
local Util = require("lazyvim.util")
|
||||
|
||||
local function map(mode, lhs, rhs, opts)
|
||||
|
|
@ -17,10 +13,6 @@ end
|
|||
local opts = { noremap = true, silent = true }
|
||||
local term_opts = { silent = true }
|
||||
|
||||
-- map("n", "d", ':set relativenumber<CR>d', opts)
|
||||
-- map("n", "y", ':set relativenumber<CR>y', opts)
|
||||
-- map("n", "<ESC>", ':set norelativenumber<CR><ESC>', opts)
|
||||
|
||||
-- crimes against humanity, but I don't care
|
||||
map("n", "j", "h", opts)
|
||||
map("n", "l", "k", opts)
|
||||
|
|
@ -43,7 +35,7 @@ map("n", "<F10>", ':lua require("dap").close()<CR> :lua require("dapui").toggle(
|
|||
map("n", "f", ":lua require('nvim-tree.api').tree.toggle()<CR>", opts)
|
||||
|
||||
-- toggle terminal
|
||||
map("n", "<C-d>", ":lua require('toggleterm').toggle(1)<CR>", opts)
|
||||
map("n", "<C-t>", ":lua require('toggleterm').toggle(1)<CR>", opts)
|
||||
|
||||
-- tab switching
|
||||
map("n", "<F1>", ":BufferLineCyclePrev<CR>", opts)
|
||||
|
|
@ -72,8 +64,8 @@ function _G.set_terminal_maps()
|
|||
vim.keymap.set("t", "jk", [[<C-\><C-n>]], opts)
|
||||
vim.keymap.set("t", "<A-h>", [[<Cmd>wincmd h<CR>]], opts)
|
||||
vim.keymap.set("t", "<A-j>", [[<Cmd>wincmd j<CR>]], opts)
|
||||
-- vim.keymap.set("t", "<A-k>", [[<Cmd>wincmd k<CR>]], opts)
|
||||
-- vim.keymap.set("t", "<A-l>", [[<Cmd>wincmd l<CR>]], opts)
|
||||
vim.keymap.set("n", "<C-t>", ":lua require('toggleterm').toggle(1)<CR>", opts)
|
||||
vim.keymap.set("i", "<C-t>", ":lua require('toggleterm').toggle(1)<CR>", opts)
|
||||
end
|
||||
|
||||
-- if you only want these mappings for toggle term use term://*toggleterm#* instead
|
||||
|
|
@ -84,7 +76,6 @@ map("n", "<A-l>", ":wincmd k<CR>", opts)
|
|||
map("n", "<A-;>", ":wincmd l<CR>", opts)
|
||||
|
||||
-- harpoon man
|
||||
|
||||
map("n", "<C-1>", ":lua require('harpoon.ui').nav_file(1)<CR>", opts)
|
||||
map("n", "<C-2>", ":lua require('harpoon.ui').nav_file(2)<CR>", opts)
|
||||
map("n", "<C-3>", ":lua require('harpoon.ui').nav_file(3)<CR>", opts)
|
||||
|
|
@ -98,7 +89,6 @@ map("n", "fg", ":lua require('telescope.builtin').live_grep()<CR>", {})
|
|||
map("n", "fh", ":lua require('telescope.builtin').help_tags()<CR>", {})
|
||||
map("n", "fp", ":lua require'telescope'.extensions.project.project{}<CR>", { noremap = true, silent = true })
|
||||
map("n", "fm", ":Telescope harpoon marks<CR>", { noremap = true, silent = true })
|
||||
|
||||
vim.keymap.set("n", "<leader>z", ":lua require('telescope').extensions.zoxide.list{}<CR>")
|
||||
|
||||
-- trouble
|
||||
|
|
@ -110,8 +100,9 @@ function Better_yank(opts)
|
|||
vim.api.nvim_command(current_line .. "," .. (opts.count - (current_line - 1)) .. "y")
|
||||
end
|
||||
|
||||
vim.api.nvim_create_user_command("BetterYank", Better_yank, { count = 1 }) map("n", "gy", ":BetterYank<CR>", term_opts)
|
||||
vim.api.nvim_create_user_command("BetterYank", Better_yank, { count = 1 })
|
||||
map("n", "<leader>y", ":BetterYank<CR>", term_opts)
|
||||
|
||||
-- better delete
|
||||
function Better_delete(opts)
|
||||
local current_line = unpack(vim.api.nvim_win_get_cursor(0))
|
||||
|
|
@ -121,6 +112,24 @@ end
|
|||
vim.api.nvim_create_user_command("BetterDelete", Better_delete, { count = 1 })
|
||||
map("n", "<leader>d", ":BetterDelete<CR>", term_opts)
|
||||
|
||||
-- neovide zoom
|
||||
local change_scale_factor = function(delta)
|
||||
vim.g.neovide_scale_factor = vim.g.neovide_scale_factor * delta
|
||||
end
|
||||
vim.keymap.set("n", "<C-=>", function()
|
||||
change_scale_factor(1.25)
|
||||
end)
|
||||
vim.keymap.set("n", "<C-->", function()
|
||||
change_scale_factor(1 / 1.25)
|
||||
end)
|
||||
|
||||
-- neovide paste
|
||||
vim.g.neovide_input_use_logo = 1
|
||||
vim.api.nvim_set_keymap('i', '<C-S-V>', '<ESC>p<CR>I', { noremap = true, silent = true})
|
||||
-- vim.api.nvim_set_keymap('!', '<D-v>', '<C-R>+', { noremap = true, silent = true})
|
||||
-- vim.api.nvim_set_keymap('t', '<D-v>', '<C-R>+', { noremap = true, silent = true})
|
||||
-- vim.api.nvim_set_keymap('v', '<D-v>', '<C-R>+', { noremap = true, silent = true})
|
||||
|
||||
-- gitui
|
||||
map("n", "<leader>gg", function()
|
||||
Util.float_term({ "gitui" }, { cwd = Util.get_root() })
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ return {
|
|||
marksman = {},
|
||||
asm_lsp = {},
|
||||
csharp_ls = {
|
||||
cmd = { "/home/dashie/.dotnet/tools/csharp-ls" },
|
||||
cmd = { "/home/dashie/.local/share/nvim/mason/bin/csharp-ls" },
|
||||
filetypes = { "cs" },
|
||||
init_options = {
|
||||
AutomaticWorkspaceInit = true,
|
||||
|
|
@ -115,6 +115,9 @@ return {
|
|||
jdtls = function()
|
||||
return true
|
||||
end,
|
||||
rust_analyzer = function()
|
||||
return true
|
||||
end,
|
||||
},
|
||||
},
|
||||
config = function(plugin, opts)
|
||||
|
|
@ -148,7 +151,6 @@ return {
|
|||
on_attach = on_attach,
|
||||
vim.lsp.diagnostic.on_publish_diagnostics,
|
||||
{
|
||||
-- Disable virtual_text
|
||||
virtual_text = true,
|
||||
},
|
||||
}, servers[server] or {})
|
||||
|
|
|
|||
|
|
@ -158,4 +158,18 @@ return {
|
|||
require("neoscroll.config").set_mappings(t)
|
||||
end,
|
||||
},
|
||||
{
|
||||
"simrat39/rust-tools.nvim",
|
||||
lazy = true,
|
||||
event = "FileType rust",
|
||||
dependencies = { "neovim/nvim-lspconfig", "nvim-lua/plenary.nvim", "mfussenegger/nvim-dap" },
|
||||
opts = function()
|
||||
local extension_path = vim.env.HOME .. "/.local/share/nvim/mason/packages/codelldb/extension/"
|
||||
local codelldb_path = extension_path .. "adapter/codelldb"
|
||||
local liblldb_path = extension_path .. "lldb/lib/liblldb.dylib"
|
||||
return {
|
||||
dap = { adapter = require("rust-tools.dap").get_codelldb_adapter(codelldb_path, liblldb_path) },
|
||||
}
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue