Skip to content

Commit 3e044f1

Browse files
authored
Add files via upload
1 parent b0c5bee commit 3e044f1

File tree

1 file changed

+34
-17
lines changed

1 file changed

+34
-17
lines changed

init.lua

Lines changed: 34 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,12 @@ require('lazy').setup({
265265
{
266266
'<leader>sd',
267267
function()
268-
Snacks.picker.diagnostics()
268+
Snacks.picker.diagnostics {
269+
layout = {
270+
preview = 'main',
271+
preset = 'ivy_split',
272+
},
273+
}
269274
end,
270275
desc = 'Diagnostics',
271276
},
@@ -576,7 +581,7 @@ require('lazy').setup({
576581
})
577582
end,
578583
},
579-
require 'custom/plugins/tabby',
584+
-- require 'custom/plugins/tabby',
580585
{
581586
'christoomey/vim-tmux-navigator',
582587
cmd = {
@@ -1030,10 +1035,27 @@ require('lazy').setup({
10301035
},
10311036
},
10321037
},
1038+
bashls = {
1039+
filetypes = { 'sh', 'bash' },
1040+
cmd = { 'bash-language-server', 'start' },
1041+
shellcheckPath = '$HOME/.local/share/nvim/mason/bin/shellcheck',
1042+
},
1043+
texlab = {
1044+
settings = {
1045+
texlab = {
1046+
build = {
1047+
args = { '-X', 'compile', '%f', '--synctex', '--keep-logs', '--keep-intermediates' },
1048+
executable = 'tectonic',
1049+
},
1050+
},
1051+
},
1052+
},
10331053
pyright = {},
10341054
ruff = {
1035-
enabled = true,
1036-
formatEnabled = true,
1055+
settings = {
1056+
enabled = true,
1057+
formatEnabled = true,
1058+
},
10371059
},
10381060
cmake = {},
10391061
lua_ls = {
@@ -1058,6 +1080,9 @@ require('lazy').setup({
10581080
-- :Mason
10591081
--
10601082
-- You can press `g?` for help in this menu.
1083+
for server_name, server in pairs(servers) do
1084+
vim.lsp.config(server_name, server)
1085+
end
10611086
require('mason').setup()
10621087

10631088
-- You can add other tools here that you want Mason to install
@@ -1068,21 +1093,10 @@ require('lazy').setup({
10681093
})
10691094
require('mason-tool-installer').setup { ensure_installed = ensure_installed }
10701095

1071-
require('mason-lspconfig').setup {
1072-
handlers = {
1073-
function(server_name)
1074-
local server = servers[server_name] or {}
1075-
-- This handles overriding only values explicitly passed
1076-
-- by the server configuration above. Useful when disabling
1077-
-- certain features of an LSP (for example, turning off formatting for ts_ls)
1078-
server.capabilities = vim.tbl_deep_extend('force', {}, capabilities, server.capabilities or {})
1079-
require('lspconfig')[server_name].setup(server)
1080-
end,
1081-
},
1082-
}
1096+
require('mason-lspconfig').setup {}
10831097
end,
10841098
},
1085-
{ 'anuvyklack/pretty-fold.nvim', config = true },
1099+
{ 'bbjornstad/pretty-fold.nvim', config = true },
10861100
{ -- Autoformat
10871101
'stevearc/conform.nvim',
10881102
event = { 'BufWritePre' },
@@ -1118,6 +1132,9 @@ require('lazy').setup({
11181132
cpp = { 'clang-format' },
11191133
json = { 'clang-format' },
11201134
lua = { 'stylua' },
1135+
latex = { 'texlab' },
1136+
bash = { 'shellcheck' },
1137+
sh = { 'shellcheck' },
11211138
-- Conform can also run multiple formatters sequentially
11221139
python = { 'ruff_format', 'ruff_fix', 'ruff_organize_imports' },
11231140
['*'] = { 'codespell' },

0 commit comments

Comments
 (0)