This commit is contained in:
sadan 2024-08-06 15:20:59 -04:00
parent e4405275fa
commit bf42a74f00
No known key found for this signature in database
3 changed files with 32 additions and 17 deletions

View file

@ -1,12 +1,25 @@
local plugins = { local plugins = {
{
"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 = {
visual = "<leader>s",
visual_line = "<leader>s"
}
})
end,
},
{ {
"akinsho/bufferline.nvim", "akinsho/bufferline.nvim",
version = "*", version = "*",
dependencies = "nvim-tree/nvim-web-devicons", dependencies = "nvim-tree/nvim-web-devicons",
}, },
{ {
"akinsho/toggleterm.nvim" "akinsho/toggleterm.nvim",
}, },
{ {
dir = "/home/meyer/dev/lua/vencord.nvim", dir = "/home/meyer/dev/lua/vencord.nvim",
}, },

View file

@ -95,20 +95,21 @@ local function setupJDTLS()
} }
return config return config
end end
vim.api.nvim_create_autocmd("FileType", { -- vim.api.nvim_create_autocmd("FileType", {
pattern = "java", -- pattern = "java",
callback = function() -- callback = function()
local jdtls = require("jdtls") -- local jdtls = require("jdtls")
jdtls.start_or_attach(setupJDTLS()) -- jdtls.start_or_attach(setupJDTLS())
-- require("jdtls").setup_dap() -- -- require("jdtls").setup_dap()
vim.keymap.set({ "n", "i" }, "<A-F>", function() -- vim.keymap.set({ "n", "i" }, "<A-F>", function()
require("jdtls").organize_imports() -- require("jdtls").organize_imports()
vim.lsp.buf.format() -- vim.lsp.buf.format()
end, {}) -- end, {})
end, -- end,
}) -- })
-- ENDjdtls -- ENDjdtls
require("lspconfig").emmet_language_server.setup({ require("lspconfig").emmet_language_server.setup({
filetypes = {"css", "scss", "sass", "less", "html"}
capabilities = capabilities, capabilities = capabilities,
}) })
require("lspconfig").cssls.setup({ require("lspconfig").cssls.setup({

View file

@ -29,11 +29,12 @@ require("toggleterm").setup({
-- shading_factor = "<number>", -- the percentage by which to lighten dark terminal background, default: -30 -- shading_factor = "<number>", -- the percentage by which to lighten dark terminal background, default: -30
-- shading_ratio = "<number>", -- the ratio of shading factor for light/dark terminal background, default: -3 -- shading_ratio = "<number>", -- the ratio of shading factor for light/dark terminal background, default: -3
start_in_insert = true, start_in_insert = true,
insert_mappings = true, -- whether or not the open mapping applies in insert mode insert_mappings = false, -- whether or not the open mapping applies in insert mode
terminal_mappings = true, -- whether or not the open mapping applies in the opened terminals terminal_mappings = true, -- whether or not the open mapping applies in the opened terminals
persist_size = true, persist_size = true,
persist_mode = true, -- if set to true (default) the previous terminal mode will be remembered persist_mode = true, -- if set to true (default) the previous terminal mode will be remembered
direction = "horizontal", direction = "tab",
-- direction = "horizontal",
close_on_exit = true, -- close the terminal window when the process exits close_on_exit = true, -- close the terminal window when the process exits
-- Change the default shell. Can be a string or a function returning a string -- Change the default shell. Can be a string or a function returning a string
shell = vim.o.shell, shell = vim.o.shell,