various changes
This commit is contained in:
parent
5ca9db6724
commit
e7cee070f1
7 changed files with 102 additions and 64 deletions
2
init.lua
2
init.lua
|
|
@ -36,5 +36,3 @@ require "nvchad.autocmds"
|
|||
vim.schedule(function()
|
||||
require "mappings"
|
||||
end)
|
||||
|
||||
local saga = "lspsaga"
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@
|
|||
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
|
||||
"nvim-autopairs": { "branch": "master", "commit": "23320e75953ac82e559c610bec5a90d9c6dfa743" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "b5311ab3ed9c846b585c0c15b7559be131ec4be9" },
|
||||
"nvim-dap": { "branch": "master", "commit": "a479e25ed5b5d331fb46ee4b9e160ff02ac64310" },
|
||||
"nvim-jdtls": { "branch": "master", "commit": "4d77ff02063cf88963d5cf10683ab1fd15d072de" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "b0caeef0d835fbe19df6ad71dbc4345eaaea649c" },
|
||||
"nvim-tree.lua": { "branch": "master", "commit": "f0e9951778802526b14c934f7bf746e1e0ae5ed0" },
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
local M = {}
|
||||
|
||||
M.base46 = {
|
||||
theme = "pastelDark",
|
||||
theme = "radium",
|
||||
}
|
||||
|
||||
return M
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ local options = {
|
|||
typescriptreact = { "prettier" },
|
||||
javascript = { "prettier" },
|
||||
javascriptreact = { "prettier" },
|
||||
json = { "prettier" },
|
||||
},
|
||||
|
||||
format_on_save = {
|
||||
|
|
|
|||
|
|
@ -6,9 +6,10 @@ local servers = {
|
|||
cssld = {},
|
||||
clangd = {},
|
||||
ts_ls = {},
|
||||
dartls = {},
|
||||
jdtls = {},
|
||||
texlab = {},
|
||||
jsonls = {},
|
||||
dartls = {},
|
||||
}
|
||||
|
||||
for name, opts in pairs(servers) do
|
||||
|
|
|
|||
|
|
@ -20,3 +20,13 @@ end)
|
|||
map("t", "<C-t>", function()
|
||||
term.toggle()
|
||||
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>'
|
||||
)
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ return {
|
|||
"typescript",
|
||||
"dart",
|
||||
"latex",
|
||||
"json",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
@ -41,8 +42,34 @@ return {
|
|||
"nvim-lua/plenary.nvim",
|
||||
"stevearc/dressing.nvim",
|
||||
},
|
||||
config = true,
|
||||
config = function()
|
||||
require("flutter-tools").setup {}
|
||||
end,
|
||||
},
|
||||
|
||||
{ "mfussenegger/nvim-dap" },
|
||||
|
||||
{ "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,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue