This commit is contained in:
Andre Raposo 2025-05-30 11:23:58 -03:00
parent de80b447c4
commit bcf324b472
5 changed files with 54 additions and 20 deletions

View File

@ -8,7 +8,7 @@ vim.g.maplocalleader = ' '
vim.g.have_nerd_font = true vim.g.have_nerd_font = true
-- Set global theme -- Set global theme
vim.g.theme = 'adwaita' vim.g.theme = 'oxocarbon'
-- [[ Setting options ]] -- [[ Setting options ]]
-- See `:help vim.opt` -- See `:help vim.opt`
@ -82,6 +82,7 @@ vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
-- Diagnostic keymaps -- Diagnostic keymaps
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' }) vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })
vim.keymap.set('n', '<C-q>', vim.diagnostic.open_float, { desc = 'Open diagnostic on a float window' })
-- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier -- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier
-- for people to discover. Otherwise, you normally need to press <C-\><C-n>, which -- for people to discover. Otherwise, you normally need to press <C-\><C-n>, which
@ -500,14 +501,14 @@ require('lazy').setup({
}) })
-- Change diagnostic symbols in the sign column (gutter) -- Change diagnostic symbols in the sign column (gutter)
-- if vim.g.have_nerd_font then if vim.g.have_nerd_font then
-- local signs = { ERROR = '', WARN = '', INFO = '', HINT = '' } local signs = { ERROR = '', WARN = '', INFO = '', HINT = '' }
-- local diagnostic_signs = {} local diagnostic_signs = {}
-- for type, icon in pairs(signs) do for type, icon in pairs(signs) do
-- diagnostic_signs[vim.diagnostic.severity[type]] = icon diagnostic_signs[vim.diagnostic.severity[type]] = icon
-- end end
-- vim.diagnostic.config { signs = { text = diagnostic_signs } } vim.diagnostic.config { signs = { text = diagnostic_signs } }
-- end end
-- LSP servers and clients are able to communicate to each other what features they support. -- LSP servers and clients are able to communicate to each other what features they support.
-- By default, Neovim doesn't support everything that is in the LSP specification. -- By default, Neovim doesn't support everything that is in the LSP specification.
@ -542,6 +543,7 @@ require('lazy').setup({
}, },
}, },
jedi_language_server = {}, jedi_language_server = {},
kotlin_language_server = {},
-- rust_analyzer = {}, -- rust_analyzer = {},
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
-- --
@ -562,7 +564,7 @@ require('lazy').setup({
callSnippet = 'Replace', callSnippet = 'Replace',
}, },
-- You can toggle below to ignore Lua_LS's noisy `missing-fields` warnings -- You can toggle below to ignore Lua_LS's noisy `missing-fields` warnings
-- diagnostics = { disable = { 'missing-fields' } }, diagnostics = { disable = { 'missing-fields' } },
}, },
}, },
}, },
@ -592,6 +594,7 @@ require('lazy').setup({
'emmet-language-server', -- emmet 'emmet-language-server', -- emmet
'sonarlint-language-server', -- Helpful linting and diagnostics 'sonarlint-language-server', -- Helpful linting and diagnostics
'markdownlint', 'markdownlint',
'ktlint',
}) })
require('mason-tool-installer').setup { ensure_installed = ensure_installed } require('mason-tool-installer').setup { ensure_installed = ensure_installed }
@ -638,7 +641,7 @@ require('lazy').setup({
lsp_format_opt = 'fallback' lsp_format_opt = 'fallback'
end end
return { return {
timeout_ms = 500, timeout_ms = 750,
lsp_format = lsp_format_opt, lsp_format = lsp_format_opt,
} }
end, end,
@ -791,20 +794,19 @@ require('lazy').setup({
end, end,
}, },
{
'nyoom-engineering/oxocarbon.nvim',
lazy = false,
priority = 1000,
config = function()
vim.cmd.colorscheme(vim.g.theme)
end,
},
{ {
'Mofiqul/adwaita.nvim', 'Mofiqul/adwaita.nvim',
lazy = false, lazy = false,
priority = 1000, priority = 1000,
}, },
{
'uloco/bluloco.nvim',
lazy = false,
priority = 1000,
dependencies = { 'rktjmp/lush.nvim' },
},
{ 'EdenEast/nightfox.nvim', lazy = false, priority = 1000 }, -- lazy
-- Highlight todo, notes, etc in comments -- Highlight todo, notes, etc in comments
{ 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } }, { 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } },
@ -831,6 +833,8 @@ require('lazy').setup({
-- Simple and easy statusline. -- Simple and easy statusline.
-- You could remove this setup call if you don't like it, -- You could remove this setup call if you don't like it,
-- and try some other statusline plugin -- and try some other statusline plugin
require('mini.git').setup()
require('mini.diff').setup()
local statusline = require 'mini.statusline' local statusline = require 'mini.statusline'
-- set use_icons to true if you have a Nerd Font -- 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 }

View File

@ -0,0 +1,10 @@
return {
'S1M0N38/love2d.nvim',
event = 'VeryLazy',
opts = {},
keys = {
{ '<leader>v', ft = 'lua', desc = 'LÖVE' },
{ '<leader>vv', '<cmd>LoveRun<cr>', ft = 'lua', desc = 'Run LÖVE' },
{ '<leader>vs', '<cmd>LoveStop<cr>', ft = 'lua', desc = 'Stop LÖVE' },
},
}

View File

@ -0,0 +1,18 @@
return {
'nvim-treesitter/nvim-treesitter-context',
opts = {
enable = true, -- Enable this plugin (Can be enabled/disabled later via commands)
multiwindow = false, -- Enable multiwindow support.
max_lines = 0, -- How many lines the window should span. Values <= 0 mean no limit.
min_window_height = 0, -- Minimum editor window height to enable context. Values <= 0 mean no limit.
line_numbers = true,
multiline_threshold = 20, -- Maximum number of lines to show for a single context
trim_scope = 'outer', -- Which context lines to discard if `max_lines` is exceeded. Choices: 'inner', 'outer'
mode = 'cursor', -- Line used to calculate context. Choices: 'cursor', 'topline'
-- Separator between context and content. Should be a single character string, like '-'.
-- When separator is set, the context will only show up when there are at least 2 lines above cursorline.
separator = nil,
zindex = 20, -- The Z-index of the context window
on_attach = nil, -- (fun(buf: integer): boolean) return false to disable attaching
},
}

View File

@ -0,0 +1 @@
return {}

View File

@ -19,6 +19,7 @@ return {
opts = { opts = {
filesystem = { filesystem = {
window = { window = {
position = 'right',
mappings = { mappings = {
['\\'] = 'close_window', ['\\'] = 'close_window',
}, },