Neotest mappings, basedpyright, ts-error-translator
* Set blink to 1500 ms * replace pyright with basedpyright * add ts-error-translator for nicer tsserver error * Swap overseer open mappings (default to opening at bottom) * Add mappings for neotestmigrate-to-lazy
parent
f56f17aed0
commit
ad2f89731f
26
init.lua
26
init.lua
|
@ -19,7 +19,7 @@ if fn.hostname() == 'tappy' then
|
||||||
g.neovide_refresh_rate = 144
|
g.neovide_refresh_rate = 144
|
||||||
end
|
end
|
||||||
|
|
||||||
opt.guicursor:append('a:blinkon1000-blinkoff1000-blinkwait1000') -- Blink cursor once a second for all modes
|
opt.guicursor:append('a:blinkon1500-blinkoff1500-blinkwait1200') -- Blink cursor once every 1.5 seconds
|
||||||
o.mouse = 'a' -- Enable mouse input
|
o.mouse = 'a' -- Enable mouse input
|
||||||
o.termguicolors = true -- Enable 24bit terminal colors
|
o.termguicolors = true -- Enable 24bit terminal colors
|
||||||
g.neovide_confirm_quit = 1 -- Confirm closing neovide window when changes are unsaved
|
g.neovide_confirm_quit = 1 -- Confirm closing neovide window when changes are unsaved
|
||||||
|
@ -406,7 +406,7 @@ require('lazy').setup({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
lspconfig.nil_ls.setup {}
|
lspconfig.nil_ls.setup {}
|
||||||
lspconfig.pyright.setup {}
|
lspconfig.basedpyright.setup {}
|
||||||
lspconfig.vimls.setup {}
|
lspconfig.vimls.setup {}
|
||||||
|
|
||||||
-- TODO decide what to do with autocmd
|
-- TODO decide what to do with autocmd
|
||||||
|
@ -635,6 +635,7 @@ require('lazy').setup({
|
||||||
end)()
|
end)()
|
||||||
}
|
}
|
||||||
}},
|
}},
|
||||||
|
{'dmmulroy/ts-error-translator.nvim', opts = {}},
|
||||||
{'nvimtools/none-ls.nvim', dependencies = {'nvim-lua/plenary.nvim'}, config = function()
|
{'nvimtools/none-ls.nvim', dependencies = {'nvim-lua/plenary.nvim'}, config = function()
|
||||||
local null_ls = require'null-ls'
|
local null_ls = require'null-ls'
|
||||||
null_ls.setup {
|
null_ls.setup {
|
||||||
|
@ -1005,8 +1006,8 @@ require('lazy').setup({
|
||||||
require'which-key'.register {
|
require'which-key'.register {
|
||||||
['<Leader>r'] = {
|
['<Leader>r'] = {
|
||||||
name = 'Overseer (run tasks)',
|
name = 'Overseer (run tasks)',
|
||||||
r = {'<Cmd>OverseerToggle right<CR>', 'Open' },
|
r = {'<Cmd>OverseerToggle bottom<CR>', 'Open' },
|
||||||
R = {'<Cmd>OverseerToggle bottom<CR>', 'Open (bottom)' },
|
R = {'<Cmd>OverseerToggle right<CR>', 'Open (right)' },
|
||||||
n = {'<Cmd>OverseerRun<CR>', 'New task' },
|
n = {'<Cmd>OverseerRun<CR>', 'New task' },
|
||||||
c = {'<Cmd>OverseerRunCmd<CR>', 'Run shell command' },
|
c = {'<Cmd>OverseerRunCmd<CR>', 'Run shell command' },
|
||||||
l = {'<Cmd>OverseerLoadBundle!<CR>', 'Load task list'},
|
l = {'<Cmd>OverseerLoadBundle!<CR>', 'Load task list'},
|
||||||
|
@ -1122,14 +1123,25 @@ require('lazy').setup({
|
||||||
require'telescope'.load_extension('dap')
|
require'telescope'.load_extension('dap')
|
||||||
require'telescope'.load_extension('undo')
|
require'telescope'.load_extension('undo')
|
||||||
end},
|
end},
|
||||||
{'nvim-neotest/neotest', dependencies = {'rcasia/neotest-java', 'nvim-neotest/neotest-vim-test', 'rouge8/neotest-rust'}, config = function()
|
{'nvim-neotest/neotest', dependencies = {
|
||||||
|
'nvim-neotest/neotest-vim-test',
|
||||||
|
'rouge8/neotest-rust',
|
||||||
|
}, config = function()
|
||||||
require'neotest'.setup {
|
require'neotest'.setup {
|
||||||
adapters = {
|
adapters = {
|
||||||
require'neotest-java' {},
|
require'neotest-vim-test' { allow_file_types = {'java'} },
|
||||||
require'neotest-vim-test' {},
|
|
||||||
require'neotest-rust' {},
|
require'neotest-rust' {},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
require'which-key'.register {
|
||||||
|
['<Leader>x'] = {
|
||||||
|
name = 'Test',
|
||||||
|
s = {'<Cmd>Neotest summary<CR>','Summary'},
|
||||||
|
a = {'<Cmd>Neotest attach<CR>', 'Attach to running test'},
|
||||||
|
k = {'<Cmd>Neotest stop<CR>', 'Stop'},
|
||||||
|
o = {'<Cmd>Neotest output-panel<CR>', 'Output'}
|
||||||
|
}
|
||||||
|
}
|
||||||
end},
|
end},
|
||||||
{'kyazdani42/nvim-tree.lua', opts = {
|
{'kyazdani42/nvim-tree.lua', opts = {
|
||||||
actions = {
|
actions = {
|
||||||
|
|
Loading…
Reference in New Issue