This commit is contained in:
Thies Lennart Alff 2026-05-28 13:07:30 +02:00
parent d72c25c54e
commit 489987d0b0
Signed by: lennartalff
GPG key ID: 4EC67D34D594104D
6 changed files with 52 additions and 36 deletions

View file

@ -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>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)

View file

@ -1,6 +1,5 @@
local lspconfig = require('lspconfig')
lspconfig.lua_ls.setup({
vim.lsp.config.lua_ls.setup({
settings = {
Lua = {
diagnostics = {

View file

@ -53,3 +53,7 @@ vim.keymap.set('v', '<', '<gv')
vim.keymap.set('v', '>', '>gv')
vim.keymap.set('n', '<C-n>', '<cmd>Neotree<cr>')
-- nvim-surround
vim.keymap.set('n', '<leader>s', '<Plug>(nvim-surround-normal)')

View file

@ -1,5 +1,6 @@
return {
'klen/nvim-config-local',
tag = "2.1.0",
opts = {
config_files = { '.nvim.lua' },
hashfile = vim.fn.stdpath('data') .. '/config-local',

View file

@ -22,6 +22,21 @@ return {
dependencies = {
{ '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',
@ -48,13 +63,6 @@ return {
"kylechui/nvim-surround",
version = "*", -- Use for stability; omit to use `main` branch for the latest features
event = "VeryLazy",
config = function()
require("nvim-surround").setup({
keymaps = {
normal = "<leader>s",
},
})
end
},
{
'lervag/vimtex',

View file

@ -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', {
desc = 'LSP actions',
callback = function(event)
@ -63,7 +47,7 @@ local handlers = {
})
end,
pylsp = function()
require('lspconfig').pylsp.setup({
vim.lsp.config.pylsp.setup({
settings = {
pylsp = {
plugins = {
@ -83,16 +67,8 @@ local handlers = {
},
})
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()
require('lspconfig').texlab.setup({
vim.lsp.config.texlab.setup({
settings = {
texlab = {
build = {
@ -115,6 +91,27 @@ local handlers = {
})
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 {
{