various changes

This commit is contained in:
alzalia1 2025-08-18 13:51:08 +02:00
parent 5ca9db6724
commit e7cee070f1
7 changed files with 102 additions and 64 deletions

View file

@ -36,5 +36,3 @@ require "nvchad.autocmds"
vim.schedule(function() vim.schedule(function()
require "mappings" require "mappings"
end) end)
local saga = "lspsaga"

View file

@ -25,6 +25,7 @@
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" }, "nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
"nvim-autopairs": { "branch": "master", "commit": "23320e75953ac82e559c610bec5a90d9c6dfa743" }, "nvim-autopairs": { "branch": "master", "commit": "23320e75953ac82e559c610bec5a90d9c6dfa743" },
"nvim-cmp": { "branch": "main", "commit": "b5311ab3ed9c846b585c0c15b7559be131ec4be9" }, "nvim-cmp": { "branch": "main", "commit": "b5311ab3ed9c846b585c0c15b7559be131ec4be9" },
"nvim-dap": { "branch": "master", "commit": "a479e25ed5b5d331fb46ee4b9e160ff02ac64310" },
"nvim-jdtls": { "branch": "master", "commit": "4d77ff02063cf88963d5cf10683ab1fd15d072de" }, "nvim-jdtls": { "branch": "master", "commit": "4d77ff02063cf88963d5cf10683ab1fd15d072de" },
"nvim-lspconfig": { "branch": "master", "commit": "b0caeef0d835fbe19df6ad71dbc4345eaaea649c" }, "nvim-lspconfig": { "branch": "master", "commit": "b0caeef0d835fbe19df6ad71dbc4345eaaea649c" },
"nvim-tree.lua": { "branch": "master", "commit": "f0e9951778802526b14c934f7bf746e1e0ae5ed0" }, "nvim-tree.lua": { "branch": "master", "commit": "f0e9951778802526b14c934f7bf746e1e0ae5ed0" },

View file

@ -6,7 +6,7 @@
local M = {} local M = {}
M.base46 = { M.base46 = {
theme = "pastelDark", theme = "radium",
} }
return M return M

View file

@ -7,6 +7,7 @@ local options = {
typescriptreact = { "prettier" }, typescriptreact = { "prettier" },
javascript = { "prettier" }, javascript = { "prettier" },
javascriptreact = { "prettier" }, javascriptreact = { "prettier" },
json = { "prettier" },
}, },
format_on_save = { format_on_save = {

View file

@ -6,9 +6,10 @@ local servers = {
cssld = {}, cssld = {},
clangd = {}, clangd = {},
ts_ls = {}, ts_ls = {},
dartls = {},
jdtls = {}, jdtls = {},
texlab = {}, texlab = {},
jsonls = {},
dartls = {},
} }
for name, opts in pairs(servers) do for name, opts in pairs(servers) do

View file

@ -20,3 +20,13 @@ end)
map("t", "<C-t>", function() map("t", "<C-t>", function()
term.toggle() term.toggle()
end) end)
-- display full diagnostic message
map("n", "<leader>dd", "<cmd>lua vim.diagnostic.open_float()<CR>")
-- cancel snippets
map(
{ "i", "s" },
"<ESC>",
'<cmd>lua require("luasnip").session.current_nodes[vim.api.nvim_get_current_buf()] = nil<CR><ESC>'
)

View file

@ -30,6 +30,7 @@ return {
"typescript", "typescript",
"dart", "dart",
"latex", "latex",
"json",
}, },
}, },
}, },
@ -41,8 +42,34 @@ return {
"nvim-lua/plenary.nvim", "nvim-lua/plenary.nvim",
"stevearc/dressing.nvim", "stevearc/dressing.nvim",
}, },
config = true, config = function()
require("flutter-tools").setup {}
end,
}, },
{ "mfussenegger/nvim-dap" },
{ "ingur/floatty.nvim" }, { "ingur/floatty.nvim" },
{
"L3MON4D3/LuaSnip",
even = "VaryLazy",
config = function()
local ls = require "luasnip"
ls.setup {
region_check_events = { "CursorHold", "InsertLeave" },
delete_check_events = { "TextChanged", "InsertEnter" },
history = false,
}
vim.keymap.del({ "i", "s" }, "<Tab>")
vim.keymap.set({ "i", "s" }, "<C-L>", function()
ls.jump(1)
end, { silent = true })
vim.keymap.set({ "i", "s" }, "<C-J>", function()
ls.jump(-1)
end, { silent = true })
end,
},
} }