mirror of
https://github.com/ksyasuda/rice.git
synced 2024-10-28 09:04:10 -07:00
update
This commit is contained in:
parent
8c30d6f1d6
commit
164aa942e0
@ -16,7 +16,6 @@ tnoremap <leader>tP <C-\><C-N>:FloatermToggle ipython-full<CR>
|
||||
nmap <C-J> :bnext<CR>
|
||||
nmap <C-K> :bprev<CR>
|
||||
nmap <C-T> :wa<CR>:FloatermToggle floatterm<CR>
|
||||
nmap <C-n> :NvimTreeToggle<CR>
|
||||
|
||||
" open file under cursor, create if necessary
|
||||
nnoremap // :Lines<CR>
|
||||
@ -47,6 +46,7 @@ nmap <leader>bn :bnext<CR>
|
||||
nmap <leader>bp :bprev<CR>
|
||||
|
||||
nmap <leader>ca :lua vim.lsp.buf.code_action()<CR>
|
||||
nmap <leader>cc :vert Copilot<CR>
|
||||
nmap <leader>cd :LspDiagnostics <bufnr><CR>
|
||||
nmap <leader>cl :lua vim.lsp.diagnostic.show_line_diagnostics()<CR>
|
||||
nnoremap <silent> <Leader>cn :DashboardNewFile<CR>
|
||||
|
@ -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 {}
|
||||
|
@ -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! * <buffer>
|
||||
|
@ -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,
|
||||
|
1
nvim/spell/en.utf-8.add
Normal file
1
nvim/spell/en.utf-8.add
Normal file
@ -0,0 +1 @@
|
||||
dt
|
BIN
nvim/spell/en.utf-8.add.spl
Normal file
BIN
nvim/spell/en.utf-8.add.spl
Normal file
Binary file not shown.
@ -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(
|
||||
"<Ctrl-Shift-m>",
|
||||
"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(
|
||||
"<Ctrl-Shift-d>",
|
||||
"hint links spawn --detach alacritty -e yt-dlp {hint-url}",
|
||||
"hint links spawn --detach kitty -e yt-dlp {hint-url}",
|
||||
)
|
||||
|
||||
config.bind("<Ctrl-=>'", "zoom-in")
|
||||
@ -35,5 +47,8 @@ config.bind("<j>", "scroll-px 0 150")
|
||||
|
||||
config.bind("<k>", "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}})
|
||||
|
Loading…
Reference in New Issue
Block a user