diff --git a/dot_nethackrc b/dot_nethackrc index f352d95..79817f0 100644 --- a/dot_nethackrc +++ b/dot_nethackrc @@ -1,7 +1,8 @@ # # System-wide NetHack configuration file for console-only NetHack. # -OPTIONS=windowtype:tty,toptenwin,hilite_pet,!number_pad,!cmdassist +#OPTIONS=windowtype:tty,toptenwin,hilite_pet,!number_pad,!cmdassist +OPTIONS=!number_pad,!cmdassist OPTIONS=fixinv,safe_pet,sortpack,tombstone,color OPTIONS=verbose,news,fruit:potato OPTIONS=dogname:Darty diff --git a/dot_vim/nvim.lua b/dot_vim/nvim.lua index 272c22d..0458d88 100644 --- a/dot_vim/nvim.lua +++ b/dot_vim/nvim.lua @@ -385,30 +385,30 @@ require('lspkind').init({ require('trouble').setup { mode = "document_diagnostics", auto_close = true, - action_keys = { -- key mappings for actions in the trouble list + action_keys = { -- key mappings for actions in the trouble list -- map to {} to remove a mapping, for example: -- close = {}, --close = "q", -- close the list --cancel = "", -- cancel the preview and get back to your last window / buffer / cursor --refresh = "r", -- manually refresh - jump = { "o", "" }, -- jump to the diagnostic or open / close folds + jump = { "o", "" }, -- jump to the diagnostic or open / close folds --open_split = { "" }, -- open buffer in new split --open_vsplit = { "" }, -- open buffer in new vsplit - open_tab = {}, -- open buffer in new tab - jump_close = { "" }, -- jump to the diagnostic and close the list - toggle_mode = "m", -- toggle between "workspace" and "document" diagnostics mode - toggle_preview = "P", -- toggle auto_preview - hover = "K", -- opens a small popup with the full multiline message - preview = "p", -- preview the diagnostic location - close_folds = { "zM", "zm" }, -- close all folds - open_folds = { "zR", "zr" }, -- open all folds - toggle_fold = { "zA", "za" }, -- toggle fold of current file - previous = "k", -- previous item - next = "j" -- next item + open_tab = {}, -- open buffer in new tab + jump_close = { "" }, -- jump to the diagnostic and close the list + toggle_mode = "m", -- toggle between "workspace" and "document" diagnostics mode + toggle_preview = "P", -- toggle auto_preview + hover = "K", -- opens a small popup with the full multiline message + preview = "p", -- preview the diagnostic location + close_folds = { "zM", "zm" }, -- close all folds + open_folds = { "zR", "zr" }, -- open all folds + toggle_fold = { "zA", "za" }, -- toggle fold of current file + previous = "k", -- previous item + next = "j" -- next item }, } -local trouble_telescope = require("trouble.providers.telescope") +local trouble_telescope = require("trouble.sources.telescope") local builtin = require 'telescope.builtin' local sendtoqf = function(loc) @@ -423,10 +423,10 @@ require('telescope').setup { n = { ["q"] = require('telescope.actions').close, ["ff"] = sendtoqf, - [""] = trouble_telescope.open_with_trouble, + [""] = trouble_telescope.open, }, i = { - [""] = trouble_telescope.open_with_trouble, + [""] = trouble_telescope.open, ["ff"] = require('telescope.actions').send_to_qflist, }, }, @@ -556,8 +556,8 @@ require 'nvim-treesitter.configs'.setup { playground = { enable = true, disable = {}, - updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code - persist_queries = false, -- Whether the query persists across vim sessions + updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code + persist_queries = false, -- Whether the query persists across vim sessions keybindings = { toggle_query_editor = 'o', toggle_hl_groups = 'i', @@ -673,6 +673,8 @@ function neogen_dwim() end end +require("hoversplit").setup({}) + require("murdock") require("lir_setup") require("lualine_setup") diff --git a/dot_vimrc b/dot_vimrc index 3ba9369..8d953d5 100644 --- a/dot_vimrc +++ b/dot_vimrc @@ -46,6 +46,7 @@ set ruler " I hate split above, so make it split below. Likewise, to the right. set splitbelow +set splitright " For autocomplete, follow requirements for nvim-compe set completeopt=menuone,noselect set signcolumn=yes @@ -243,6 +244,7 @@ Plug 'creativenull/efmls-configs-nvim', { 'tag': 'v1.*' } "Plug 'Shougo/vimproc.vim' "Plug 'Shougo/vimfiler.vim' +Plug 'roobert/hoversplit.nvim' Plug 'tamago324/lir.nvim' Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} @@ -288,7 +290,7 @@ luafile $HOME/.vim/nvim.lua " Code navigation shortcuts nnoremap gd lua vim.lsp.buf.definition() -nnoremap gi lua vim.lsp.buf.implementation() +nnoremap gi lua require('telescope.builtin').lsp_implementations({initial_mode = "normal"}) nnoremap gy lua vim.lsp.buf.type_definition() nnoremap K lua vim.lsp.buf.hover() nnoremap gs lua vim.lsp.buf.signature_help() @@ -296,7 +298,7 @@ nnoremap gR lua vim.lsp.buf.rename() "nnoremap gr lua vim.lsp.buf.references() nnoremap gr lua require('telescope.builtin').lsp_references({initial_mode = "normal"}) nnoremap g0 lua vim.lsp.buf.document_symbol() -nnoremap gW lua vim.lsp.buf.workspace_symbol() +nnoremap gW lua require('telescope.builtin').lsp_workspace_symbols({initial_mode = "normal"}) "nnoremap gd lua vim.lsp.buf.declaration() nnoremap ga lua vim.lsp.buf.code_action() "nnoremap ga lua require('telescope.builtin').lsp_code_actions({initial_mode = "normal"}) @@ -304,12 +306,15 @@ vnoremap ga lua vim.lsp.buf.code_action() "vnoremap ga :lua require('telescope.builtin').lsp_range_code_actions({initial_mode = "normal"}) "nnoremap ge lua vim.lsp.diagnostic.show_line_diagnostics({show_header = false, focusable = false}) "nnoremap ge lua vim.diagnostic.open_float({focusable = false}) +nnoremap im lua require'telescope'.extensions.goimpl.goimpl{} + nnoremap xx TroubleToggle nnoremap xq lua vim.diagnostic.setqflist() "nnoremap nc lua neogen_dwim() nnoremap nc lua require('neogen').generate({ type = 'any' }) nnoremap gm lua require('lspimport').import() +nnoremap K lua require('hoversplit').vsplit_remain_focused() " Set updatetime for CursorHold