From 164aa942e0963ad6fb90216cd396e137b81eeeac Mon Sep 17 00:00:00 2001 From: ksyasuda Date: Mon, 16 May 2022 23:52:25 -0700 Subject: [PATCH] update --- nvim/keybindings.vim | 2 +- nvim/plugin-confs/lspconfig.lua | 8 ++++---- nvim/plugin-confs/null-ls.lua | 2 +- nvim/plugin-confs/nvim-cmp.lua | 2 +- nvim/spell/en.utf-8.add | 1 + nvim/spell/en.utf-8.add.spl | Bin 0 -> 29 bytes qutebrowser/config.py | 23 +++++++++++++++++++---- 7 files changed, 27 insertions(+), 11 deletions(-) create mode 100644 nvim/spell/en.utf-8.add create mode 100644 nvim/spell/en.utf-8.add.spl diff --git a/nvim/keybindings.vim b/nvim/keybindings.vim index f9b58ba..94f7f5f 100644 --- a/nvim/keybindings.vim +++ b/nvim/keybindings.vim @@ -16,7 +16,6 @@ tnoremap tP :FloatermToggle ipython-full nmap :bnext nmap :bprev nmap :wa:FloatermToggle floatterm -nmap :NvimTreeToggle " open file under cursor, create if necessary nnoremap // :Lines @@ -47,6 +46,7 @@ nmap bn :bnext nmap bp :bprev nmap ca :lua vim.lsp.buf.code_action() +nmap cc :vert Copilot nmap cd :LspDiagnostics nmap cl :lua vim.lsp.diagnostic.show_line_diagnostics() nnoremap cn :DashboardNewFile diff --git a/nvim/plugin-confs/lspconfig.lua b/nvim/plugin-confs/lspconfig.lua index 14aaff8..50ed11c 100644 --- a/nvim/plugin-confs/lspconfig.lua +++ b/nvim/plugin-confs/lspconfig.lua @@ -184,10 +184,8 @@ lsp_installer.on_server_ready(function(server) server:setup(DEFAULT_SETTINGS) end) --- Use a loop to conveniently call 'setup' on multiple servers and --- map buffer local keybindings when the language server attaches --- local servers = { 'pyright', 'bashls', 'vimls', 'yamlls', 'dockerls', 'html', 'sumneko_lua', 'dotls', 'rust_analyzer', 'clangd', 'ansiblels' } -local servers = { 'jedi_language_server', 'bashls', 'vimls', 'yamlls', 'dockerls', 'html', 'sumneko_lua', 'dotls', 'rust_analyzer', 'clangd', 'ansiblels' } + +local servers = { 'jedi_language_server', 'bashls', 'vimls', 'yamlls', 'dockerls', 'html', 'sumneko_lua', 'rust_analyzer', 'clangd', 'ansiblels' } for _, lsp in pairs(servers) do require('lspconfig')[lsp].setup { on_attach = on_attach, @@ -197,3 +195,5 @@ for _, lsp in pairs(servers) do } } end + +require 'lspconfig'.bashls.setup {} diff --git a/nvim/plugin-confs/null-ls.lua b/nvim/plugin-confs/null-ls.lua index 3824d85..9bb897b 100644 --- a/nvim/plugin-confs/null-ls.lua +++ b/nvim/plugin-confs/null-ls.lua @@ -3,7 +3,7 @@ local helpers = require("null-ls.helpers") require("null-ls").setup({ on_attach = function(client) - if client.resolved_capabilities.document_formatting then + if client.supports_method "textDocument/formatting" then vim.cmd([[ augroup LspFormatting autocmd! * diff --git a/nvim/plugin-confs/nvim-cmp.lua b/nvim/plugin-confs/nvim-cmp.lua index 00b244b..d551e60 100644 --- a/nvim/plugin-confs/nvim-cmp.lua +++ b/nvim/plugin-confs/nvim-cmp.lua @@ -94,7 +94,7 @@ cmp.setup({ -- } -- Enable some language servers with the additional completion capabilities offered by nvim-cmp local lspconfig = require('lspconfig') -local servers = { 'bashls', 'pyright', 'sqlls', 'jsonls', 'yamlls', 'vimls', 'dotls', 'dockerls' } +local servers = { 'bashls', 'jedi_language_server', 'sqlls', 'jsonls', 'yamlls', 'vimls', 'dotls', 'dockerls' } for _, lsp in ipairs(servers) do lspconfig[lsp].setup { -- on_attach = my_custom_on_attach, diff --git a/nvim/spell/en.utf-8.add b/nvim/spell/en.utf-8.add new file mode 100644 index 0000000..a33a4d7 --- /dev/null +++ b/nvim/spell/en.utf-8.add @@ -0,0 +1 @@ +dt diff --git a/nvim/spell/en.utf-8.add.spl b/nvim/spell/en.utf-8.add.spl new file mode 100644 index 0000000000000000000000000000000000000000..e4aaae47be357f8a70e5e3373e10d9949fbb7b5a GIT binary patch literal 29 dcmWIZ^erw(&B-zP&%nUI#+brb!U$wQ0RV7)1s?za literal 0 HcmV?d00001 diff --git a/qutebrowser/config.py b/qutebrowser/config.py index d66668b..d432b19 100644 --- a/qutebrowser/config.py +++ b/qutebrowser/config.py @@ -3,29 +3,41 @@ import dracula.draw # Load existing settings made via :set config.load_autoconfig(True) +config.set("colors.webpage.darkmode.enabled", True) + c.content.blocking.method = "both" c.content.default_encoding = "utf-8" c.content.pdfjs = True # display pdfs c.zoom.default = "125%" -c.url.default_page = "https://dash.sudacode.com" -c.editor.command = ["alacritty", "-e", "vim", "{}"] +# c.url.default_page = "https://dash.suda.codes" +c.url.start_pages = ["https://dash.suda.codes", "https://links.suda.codes"] +c.editor.command = ["kitty", "-e", "nvim", "{}"] c.url.searchengines["a"] = "https://wiki.archlinux.org/?search={}" c.url.searchengines["ap"] = "https://www.archlinux.org/packages/?sort=&q={}" c.url.searchengines["aur"] = "https://aur.archlinux.org/packages/?K={}" -c.url.searchengines["gh"] = "https://github.com/search?q={}&type=Code" c.url.searchengines["r"] = "https://www.reddit.com/r/{}" c.url.searchengines["p"] = "https://docs.python.org/3/library/{}" +c.url.searchengines["yt"] = "https://www.youtube.com/results?search_query={}" +c.url.searchengines["ytc"] = "https://www.youtube.com/c/{}" c.aliases["gd"] = "open -t http://192.168.4.77:4000" + config.bind( "", "hint links spawn --detach mpv {hint-url}", ) + +config.bind( + "M", + "hint links spawn --detach mpv {hint-url}", +) + +config.bind("Y", "hint links spawn kitty -e youtube-dlp {hint-url}") config.bind( "", - "hint links spawn --detach alacritty -e yt-dlp {hint-url}", + "hint links spawn --detach kitty -e yt-dlp {hint-url}", ) config.bind("'", "zoom-in") @@ -35,5 +47,8 @@ config.bind("", "scroll-px 0 150") config.bind("", "scroll-px 0 -150") +config.bind("ts", "config-cycle statusbar.show always never") +config.bind("tt", "config-cycle tabs.show always never") + dracula.draw.blood(c, {"spacing": {"vertical": 6, "horizontal": 8}})