update
This commit is contained in:
parent
d72c25c54e
commit
489987d0b0
6 changed files with 52 additions and 36 deletions
|
|
@ -13,4 +13,11 @@ vim.keymap.set('n', '<C-g>', function() ui.nav_file(4) end)
|
||||||
|
|
||||||
vim.keymap.set('n', '<leader>c', cmd_ui.toggle_quick_menu)
|
vim.keymap.set('n', '<leader>c', cmd_ui.toggle_quick_menu)
|
||||||
vim.keymap.set('n', '<leader>gt1', function() term.gotoTerminal(1) end)
|
vim.keymap.set('n', '<leader>gt1', function() term.gotoTerminal(1) end)
|
||||||
vim.keymap.set('n', '<leader>br', function() term.sendCommand(1, 'build_ros') end)
|
vim.keymap.set('n', '<leader>gt2', function() term.gotoTerminal(2) end)
|
||||||
|
vim.keymap.set('n', '<leader>gt3', function() term.gotoTerminal(3) end)
|
||||||
|
vim.keymap.set('n', '<leader>gt4', function() term.gotoTerminal(4) end)
|
||||||
|
vim.keymap.set('n', '<leader>gt5', function() term.gotoTerminal(5) end)
|
||||||
|
vim.keymap.set('n', '<leader>gt6', function() term.gotoTerminal(6) end)
|
||||||
|
vim.keymap.set('n', '<leader>gt7', function() term.gotoTerminal(7) end)
|
||||||
|
vim.keymap.set('n', '<leader>gt8', function() term.gotoTerminal(8) end)
|
||||||
|
vim.keymap.set('n', '<leader>gt0', function() term.gotoTerminal(10) end)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
local lspconfig = require('lspconfig')
|
|
||||||
|
|
||||||
lspconfig.lua_ls.setup({
|
vim.lsp.config.lua_ls.setup({
|
||||||
settings = {
|
settings = {
|
||||||
Lua = {
|
Lua = {
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
|
|
@ -53,3 +53,7 @@ vim.keymap.set('v', '<', '<gv')
|
||||||
vim.keymap.set('v', '>', '>gv')
|
vim.keymap.set('v', '>', '>gv')
|
||||||
|
|
||||||
vim.keymap.set('n', '<C-n>', '<cmd>Neotree<cr>')
|
vim.keymap.set('n', '<C-n>', '<cmd>Neotree<cr>')
|
||||||
|
|
||||||
|
|
||||||
|
-- nvim-surround
|
||||||
|
vim.keymap.set('n', '<leader>s', '<Plug>(nvim-surround-normal)')
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
return {
|
return {
|
||||||
'klen/nvim-config-local',
|
'klen/nvim-config-local',
|
||||||
|
tag = "2.1.0",
|
||||||
opts = {
|
opts = {
|
||||||
config_files = { '.nvim.lua' },
|
config_files = { '.nvim.lua' },
|
||||||
hashfile = vim.fn.stdpath('data') .. '/config-local',
|
hashfile = vim.fn.stdpath('data') .. '/config-local',
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,21 @@ return {
|
||||||
dependencies = {
|
dependencies = {
|
||||||
{ 'nvim-lua/plenary.nvim' },
|
{ 'nvim-lua/plenary.nvim' },
|
||||||
},
|
},
|
||||||
|
config = function()
|
||||||
|
require('harpoon').setup({
|
||||||
|
global_settings = {
|
||||||
|
save_on_toggle = false,
|
||||||
|
save_on_change = true,
|
||||||
|
enter_on_sendcmd = true,
|
||||||
|
tmux_autoclose_windows = false,
|
||||||
|
excluded_filetypes = { 'harppon' },
|
||||||
|
mark_branch = false,
|
||||||
|
tabline = false,
|
||||||
|
tabline_prefix = ' ',
|
||||||
|
tabline_suffix = ' ',
|
||||||
|
}
|
||||||
|
})
|
||||||
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'ray-x/lsp_signature.nvim',
|
'ray-x/lsp_signature.nvim',
|
||||||
|
|
@ -48,13 +63,6 @@ return {
|
||||||
"kylechui/nvim-surround",
|
"kylechui/nvim-surround",
|
||||||
version = "*", -- Use for stability; omit to use `main` branch for the latest features
|
version = "*", -- Use for stability; omit to use `main` branch for the latest features
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
config = function()
|
|
||||||
require("nvim-surround").setup({
|
|
||||||
keymaps = {
|
|
||||||
normal = "<leader>s",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'lervag/vimtex',
|
'lervag/vimtex',
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,3 @@
|
||||||
--local lspconfig = require('lspconfig')
|
|
||||||
--local lsp_defaults = lspconfig.util.default_config
|
|
||||||
--
|
|
||||||
--lsp_defaults.capabilities = vim.tbl_deep_extend(
|
|
||||||
-- 'force',
|
|
||||||
-- lsp_defaults.capabilities,
|
|
||||||
-- require('cmp_nvim_lsp').default_capabilities()
|
|
||||||
--)
|
|
||||||
|
|
||||||
--vim.api.nvim_create_autocmd('FileType', {
|
|
||||||
-- pattern = 'tex',
|
|
||||||
-- callback = function()
|
|
||||||
-- require('cmp').setup.buffer { sources = {{ name = 'omni' }} }
|
|
||||||
-- end,
|
|
||||||
--})
|
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd('LspAttach', {
|
vim.api.nvim_create_autocmd('LspAttach', {
|
||||||
desc = 'LSP actions',
|
desc = 'LSP actions',
|
||||||
callback = function(event)
|
callback = function(event)
|
||||||
|
|
@ -63,7 +47,7 @@ local handlers = {
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
pylsp = function()
|
pylsp = function()
|
||||||
require('lspconfig').pylsp.setup({
|
vim.lsp.config.pylsp.setup({
|
||||||
settings = {
|
settings = {
|
||||||
pylsp = {
|
pylsp = {
|
||||||
plugins = {
|
plugins = {
|
||||||
|
|
@ -83,16 +67,8 @@ local handlers = {
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
-- ruff_lsp = function()
|
|
||||||
-- require('lspconfig').ruff_lsp.setup({
|
|
||||||
-- on_attach = function(client, bufnr)
|
|
||||||
-- client.server_capabilities.hoverProvider = false
|
|
||||||
-- client.server_capabilities.documentFormattingProvider = false
|
|
||||||
-- end,
|
|
||||||
-- })
|
|
||||||
-- end,
|
|
||||||
texlab = function()
|
texlab = function()
|
||||||
require('lspconfig').texlab.setup({
|
vim.lsp.config.texlab.setup({
|
||||||
settings = {
|
settings = {
|
||||||
texlab = {
|
texlab = {
|
||||||
build = {
|
build = {
|
||||||
|
|
@ -115,6 +91,27 @@ local handlers = {
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
vim.lsp.config('texlab', {
|
||||||
|
settings = {
|
||||||
|
texlab = {
|
||||||
|
build = {
|
||||||
|
onSave = false,
|
||||||
|
forwardSearchAfter = true,
|
||||||
|
},
|
||||||
|
chktex = {
|
||||||
|
onOpenAndSave = true,
|
||||||
|
},
|
||||||
|
forwardSearch = {
|
||||||
|
executable = 'zathura',
|
||||||
|
args = {
|
||||||
|
'--synctex-forward',
|
||||||
|
'%l:1:%f',
|
||||||
|
'%p',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue