This commit is contained in:
MysterieDev 2024-04-19 10:16:45 +02:00
parent 5ca867e7e5
commit b2223d2aa4
4 changed files with 83 additions and 18 deletions

View file

@ -355,6 +355,10 @@ require('lazy').setup({
-- pickers = {}
defaults = {
wrap_results = true,
layout_config = {
horizontal = { width = 0.9 },
-- other layout configuration here
},
},
extensions = {
['ui-select'] = {
@ -384,7 +388,11 @@ require('lazy').setup({
-- You can pass additional configuration to Telescope to change the theme, layout, etc.
builtin.current_buffer_fuzzy_find(require('telescope.themes').get_dropdown {
winblend = 10,
previewer = false,
previewer = true,
layout_config = {
height = 0.5,
width = 0.8,
},
})
end, { desc = '[/] Fuzzily search in current buffer' })
@ -551,6 +559,9 @@ require('lazy').setup({
--
-- But for many setups, the LSP (`tsserver`) will work just fine
vtsls = { refactor_auto_rename = true },
cssls = {},
groovyls = {},
terraformls = {},
--
lua_ls = {
@ -633,6 +644,7 @@ require('lazy').setup({
-- is found.
javascript = { { 'prettierd', 'prettier' } },
typescript = { { 'prettierd', 'prettier' } },
typescriptreact = { { 'prettierd', 'prettier' } },
},
},
},
@ -748,16 +760,18 @@ require('lazy').setup({
--
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
'ellisonleao/gruvbox.nvim',
-- 'catppuccin/nvim',
priority = 1000, -- Make sure to load this before all the other start plugins.
init = function()
-- Load the colorscheme here.
-- Like many other themes, this one has different styles, and you could load
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
-- vim.cmd.colorscheme 'catppuccin'
vim.cmd.colorscheme 'gruvbox'
-- You can configure highlights by doing something like:
vim.o.background = 'light' -- or "light" for light mode
vim.cmd [[colorscheme gruvbox]]
-- vim.cmd [[colorscheme catppuccin-macchiato]]
end,
},
@ -785,17 +799,17 @@ require('lazy').setup({
-- Simple and easy statusline.
-- You could remove this setup call if you don't like it,
-- and try some other statusline plugin
local statusline = require 'mini.statusline'
-- local statusline = require 'mini.statusline'
-- set use_icons to true if you have a Nerd Font
statusline.setup { use_icons = vim.g.have_nerd_font }
-- statusline.setup { use_icons = vim.g.have_nerd_font }
-- You can configure sections in the statusline by overriding their
-- default behavior. For example, here we set the section for
-- cursor location to LINE:COLUMN
---@diagnostic disable-next-line: duplicate-set-field
statusline.section_location = function()
return '%2l:%-2v'
end
-- statusline.section_location = function()
-- return '%2l:%-2v'
-- end
-- ... and there is more!
-- Check out: https://github.com/echasnovski/mini.nvim
@ -805,7 +819,7 @@ require('lazy').setup({
'nvim-treesitter/nvim-treesitter',
build = ':TSUpdate',
opts = {
ensure_installed = { 'bash', 'c', 'html', 'lua', 'luadoc', 'markdown', 'vim', 'vimdoc' },
ensure_installed = { 'bash', 'c', 'typescript', 'groovy', 'html', 'lua', 'luadoc', 'markdown', 'vim', 'vimdoc' },
-- Autoinstall languages that are not installed
auto_install = true,
highlight = {