Skip to content

Commit 4c35ad4

Browse files
committed
remove pacotes desnecessários e adiciona markview
1 parent 1a7dacc commit 4c35ad4

12 files changed

Lines changed: 118 additions & 200 deletions

File tree

init.lua

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ vim.g.maplocalleader = ' '
88
vim.g.have_nerd_font = true
99

1010
-- Set global theme
11-
vim.g.theme = 'oxocarbon'
11+
vim.g.theme = 'adwaita'
1212

1313
-- [[ Setting options ]]
1414
-- See `:help vim.opt`
@@ -527,7 +527,7 @@ require('lazy').setup({
527527
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
528528
local servers = {
529529
-- clangd = {},
530-
-- gopls = {},
530+
gopls = {},
531531
pyright = {
532532
settings = {
533533
pyright = { autoImportCompletion = true },
@@ -782,39 +782,26 @@ require('lazy').setup({
782782
end,
783783
},
784784

785-
{ -- You can easily change to a different colorscheme.
786-
-- Change the name of the colorscheme plugin below, and then
787-
-- change the command in the config to whatever the name of that colorscheme is.
788-
--
789-
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
790-
'folke/tokyonight.nvim',
791-
priority = 1000, -- Make sure to load this before all the other start plugins.
792-
-- init = function()
793-
-- -- Load the colorscheme here.
794-
-- -- Like many other themes, this one has different styles, and you could load
795-
-- -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
796-
-- vim.cmd.colorscheme 'tokyonight-night'
797-
--
798-
-- -- You can configure highlights by doing something like:
799-
-- vim.cmd.hi 'Comment gui=none'
800-
-- end,
801-
},
802785
{
803-
'Mofiqul/adwaita.nvim',
786+
'nyoom-engineering/oxocarbon.nvim',
804787
lazy = false,
805788
priority = 1000,
806789
config = function()
807790
vim.cmd.colorscheme(vim.g.theme)
808791
end,
809792
},
793+
810794
{
811-
'uloco/bluloco.nvim',
795+
'nyoom-engineering/oxocarbon.nvim',
812796
lazy = false,
813797
priority = 1000,
814-
dependencies = { 'rktjmp/lush.nvim' },
798+
config = function()
799+
vim.cmd.colorscheme(vim.g.theme)
800+
end,
815801
},
802+
816803
{
817-
'nyoom-engineering/oxocarbon.nvim',
804+
'Mofiqul/adwaita.nvim',
818805
lazy = false,
819806
priority = 1000,
820807
},
@@ -840,6 +827,22 @@ require('lazy').setup({
840827
require('mini.surround').setup()
841828

842829
require('mini.icons').setup()
830+
831+
-- Simple and easy statusline.
832+
-- You could remove this setup call if you don't like it,
833+
-- and try some other statusline plugin
834+
local statusline = require 'mini.statusline'
835+
-- set use_icons to true if you have a Nerd Font
836+
statusline.setup { use_icons = vim.g.have_nerd_font }
837+
838+
-- You can configure sections in the statusline by overriding their
839+
-- default behavior. For example, here we set the section for
840+
-- cursor location to LINE:COLUMN
841+
---@diagnostic disable-next-line: duplicate-set-field
842+
statusline.section_location = function()
843+
return '%2l:%-2v'
844+
end
845+
843846
-- ... and there is more!
844847
-- Check out: https://github.com/echasnovski/mini.nvim
845848
end,
@@ -905,7 +908,7 @@ require('lazy').setup({
905908
-- This is the easiest way to modularize your config.
906909
--
907910
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
908-
-- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins`
911+
-- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins`
909912
{ import = 'custom.plugins' },
910913
}, {
911914
ui = {
@@ -931,6 +934,7 @@ require('lazy').setup({
931934

932935
-- Setup python provider
933936
vim.g.python3_host_prog = '$HOME/.asdf/shims/python'
937+
vim.g.python_host_prog = '$HOME/.asdf/shims/python'
934938

935939
-- The line beneath this is called `modeline`. See `:help modeline`
936940
-- vim: ts=2 sts=2 sw=2 et

lua/custom/plugins/copilot.lua

Lines changed: 0 additions & 13 deletions
This file was deleted.

lua/custom/plugins/lualine.lua

Lines changed: 0 additions & 29 deletions
This file was deleted.

lua/custom/plugins/markview.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
return {
2+
'OXY2DEV/markview.nvim',
3+
lazy = false,
4+
5+
dependencies = {
6+
'nvim-treesitter/nvim-treesitter',
7+
'nvim-tree/nvim-web-devicons',
8+
},
9+
}

lua/custom/plugins/noice.lua

Lines changed: 0 additions & 27 deletions
This file was deleted.

lua/custom/plugins/snacks.lua

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
return {
2+
'folke/snacks.nvim',
3+
priority = 1000,
4+
lazy = false,
5+
6+
opts = {
7+
-- your configuration comes here
8+
-- or leave it empty to use the default settings
9+
-- refer to the configuration section below
10+
animate = { enabled = true },
11+
bigfile = { enabled = true },
12+
bufdelete = { enabled = true },
13+
dim = { enabled = true },
14+
notifier = { enabled = true },
15+
notify = { enabled = true },
16+
rename = { enabled = true },
17+
quickfile = { enabled = true },
18+
scroll = { enabled = true },
19+
},
20+
}

lua/custom/plugins/trouble.lua

Lines changed: 0 additions & 47 deletions
This file was deleted.

lua/custom/plugins/venv-selector.lua

Lines changed: 0 additions & 13 deletions
This file was deleted.

lua/custom/plugins/vimtex.lua

Lines changed: 0 additions & 5 deletions
This file was deleted.

lua/custom/plugins/wilder.lua

Lines changed: 56 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,63 @@
1-
-- if true then
2-
-- return {}
3-
-- end
4-
51
return {
62
'gelguy/wilder.nvim',
7-
opts = {},
3+
dependencies = {
4+
'romgrk/fzy-lua-native',
5+
},
86
config = function()
97
local wilder = require 'wilder'
108
wilder.setup { modes = { ':', '/', '?' } }
9+
-- Disable Python remote plugin
10+
wilder.set_option('use_python_remote_plugin', 0)
11+
12+
wilder.set_option('pipeline', {
13+
wilder.branch(
14+
wilder.cmdline_pipeline {
15+
fuzzy = 1,
16+
fuzzy_filter = wilder.lua_fzy_filter(),
17+
},
18+
wilder.vim_search_pipeline()
19+
),
20+
})
21+
22+
local gradient = {
23+
'#f4468f',
24+
'#fd4a85',
25+
'#ff507a',
26+
'#ff566f',
27+
'#ff5e63',
28+
'#ff6658',
29+
'#ff704e',
30+
'#ff7a45',
31+
'#ff843d',
32+
'#ff9036',
33+
'#f89b31',
34+
'#efa72f',
35+
'#e6b32e',
36+
'#dcbe30',
37+
'#d2c934',
38+
'#c8d43a',
39+
'#bfde43',
40+
'#b6e84e',
41+
'#aff05b',
42+
}
43+
44+
for i, fg in ipairs(gradient) do
45+
gradient[i] = wilder.make_hl('WilderGradient' .. i, 'Pmenu', { { a = 1 }, { a = 1 }, { foreground = fg } })
46+
end
47+
48+
wilder.set_option(
49+
'renderer',
50+
wilder.wildmenu_renderer {
51+
highlights = {
52+
gradient = gradient, -- must be set
53+
-- selected_gradient key can be set to apply gradient highlighting for the selected candidate.
54+
},
55+
56+
highlighter = wilder.highlighter_with_gradient {
57+
wilder.lua_pcre2_highlighter(), -- requires `luarocks install pcre2`
58+
wilder.lua_fzy_highlighter(), -- requires fzy-lua-native vim plugin found
59+
},
60+
}
61+
)
1162
end,
1263
}

0 commit comments

Comments
 (0)