mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-06-24 22:28:36 +02:00
Add files via upload
This commit is contained in:
parent
b0c5beec59
commit
3e044f1f56
1 changed files with 34 additions and 17 deletions
51
init.lua
51
init.lua
|
@ -265,7 +265,12 @@ require('lazy').setup({
|
||||||
{
|
{
|
||||||
'<leader>sd',
|
'<leader>sd',
|
||||||
function()
|
function()
|
||||||
Snacks.picker.diagnostics()
|
Snacks.picker.diagnostics {
|
||||||
|
layout = {
|
||||||
|
preview = 'main',
|
||||||
|
preset = 'ivy_split',
|
||||||
|
},
|
||||||
|
}
|
||||||
end,
|
end,
|
||||||
desc = 'Diagnostics',
|
desc = 'Diagnostics',
|
||||||
},
|
},
|
||||||
|
@ -576,7 +581,7 @@ require('lazy').setup({
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
require 'custom/plugins/tabby',
|
-- require 'custom/plugins/tabby',
|
||||||
{
|
{
|
||||||
'christoomey/vim-tmux-navigator',
|
'christoomey/vim-tmux-navigator',
|
||||||
cmd = {
|
cmd = {
|
||||||
|
@ -1030,10 +1035,27 @@ require('lazy').setup({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
bashls = {
|
||||||
|
filetypes = { 'sh', 'bash' },
|
||||||
|
cmd = { 'bash-language-server', 'start' },
|
||||||
|
shellcheckPath = '$HOME/.local/share/nvim/mason/bin/shellcheck',
|
||||||
|
},
|
||||||
|
texlab = {
|
||||||
|
settings = {
|
||||||
|
texlab = {
|
||||||
|
build = {
|
||||||
|
args = { '-X', 'compile', '%f', '--synctex', '--keep-logs', '--keep-intermediates' },
|
||||||
|
executable = 'tectonic',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
pyright = {},
|
pyright = {},
|
||||||
ruff = {
|
ruff = {
|
||||||
enabled = true,
|
settings = {
|
||||||
formatEnabled = true,
|
enabled = true,
|
||||||
|
formatEnabled = true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
cmake = {},
|
cmake = {},
|
||||||
lua_ls = {
|
lua_ls = {
|
||||||
|
@ -1058,6 +1080,9 @@ require('lazy').setup({
|
||||||
-- :Mason
|
-- :Mason
|
||||||
--
|
--
|
||||||
-- You can press `g?` for help in this menu.
|
-- You can press `g?` for help in this menu.
|
||||||
|
for server_name, server in pairs(servers) do
|
||||||
|
vim.lsp.config(server_name, server)
|
||||||
|
end
|
||||||
require('mason').setup()
|
require('mason').setup()
|
||||||
|
|
||||||
-- You can add other tools here that you want Mason to install
|
-- You can add other tools here that you want Mason to install
|
||||||
|
@ -1068,21 +1093,10 @@ require('lazy').setup({
|
||||||
})
|
})
|
||||||
require('mason-tool-installer').setup { ensure_installed = ensure_installed }
|
require('mason-tool-installer').setup { ensure_installed = ensure_installed }
|
||||||
|
|
||||||
require('mason-lspconfig').setup {
|
require('mason-lspconfig').setup {}
|
||||||
handlers = {
|
|
||||||
function(server_name)
|
|
||||||
local server = servers[server_name] or {}
|
|
||||||
-- This handles overriding only values explicitly passed
|
|
||||||
-- by the server configuration above. Useful when disabling
|
|
||||||
-- certain features of an LSP (for example, turning off formatting for ts_ls)
|
|
||||||
server.capabilities = vim.tbl_deep_extend('force', {}, capabilities, server.capabilities or {})
|
|
||||||
require('lspconfig')[server_name].setup(server)
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{ 'anuvyklack/pretty-fold.nvim', config = true },
|
{ 'bbjornstad/pretty-fold.nvim', config = true },
|
||||||
{ -- Autoformat
|
{ -- Autoformat
|
||||||
'stevearc/conform.nvim',
|
'stevearc/conform.nvim',
|
||||||
event = { 'BufWritePre' },
|
event = { 'BufWritePre' },
|
||||||
|
@ -1118,6 +1132,9 @@ require('lazy').setup({
|
||||||
cpp = { 'clang-format' },
|
cpp = { 'clang-format' },
|
||||||
json = { 'clang-format' },
|
json = { 'clang-format' },
|
||||||
lua = { 'stylua' },
|
lua = { 'stylua' },
|
||||||
|
latex = { 'texlab' },
|
||||||
|
bash = { 'shellcheck' },
|
||||||
|
sh = { 'shellcheck' },
|
||||||
-- Conform can also run multiple formatters sequentially
|
-- Conform can also run multiple formatters sequentially
|
||||||
python = { 'ruff_format', 'ruff_fix', 'ruff_organize_imports' },
|
python = { 'ruff_format', 'ruff_fix', 'ruff_organize_imports' },
|
||||||
['*'] = { 'codespell' },
|
['*'] = { 'codespell' },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue