@@ -49,65 +49,11 @@ require("lazy").setup({
4949 {
5050 'nvim-lualine/lualine.nvim',
5151 dependencies = { 'nvim-tree/nvim-web-devicons' },
52- config = function()
53- local colors = {
54- bg = '#1c1c1c',
55- bg_mid = '#262626',
56- bg_light = '#303030',
57- bg_lighter = '#3a3a3a',
58- fg = '#c7c7c7',
59- gray = '#767676',
60- gray_bright = '#9e9e9e',
61- blue = '#5f87af',
62- cyan = '#87afaf',
63- green = '#5faf5f',
64- magenta = '#af87af',
65- red = '#af5f5f',
66- yellow = '#af875f',
67- }
68-
69- local habamax_lualine = {
70- normal = {
71- a = { fg = colors.bg, bg = colors.gray_bright, gui = 'bold' },
72- b = { fg = colors.fg, bg = colors.bg_lighter },
73- c = { fg = colors.gray_bright, bg = colors.bg_mid },
74- },
75- insert = {
76- a = { fg = colors.bg, bg = colors.green, gui = 'bold' },
77- b = { fg = colors.fg, bg = colors.bg_lighter },
78- c = { fg = colors.gray_bright, bg = colors.bg_mid },
79- },
80- visual = {
81- a = { fg = colors.bg, bg = colors.magenta, gui = 'bold' },
82- b = { fg = colors.fg, bg = colors.bg_lighter },
83- c = { fg = colors.gray_bright, bg = colors.bg_mid },
84- },
85- replace = {
86- a = { fg = colors.bg, bg = colors.red, gui = 'bold' },
87- b = { fg = colors.fg, bg = colors.bg_lighter },
88- c = { fg = colors.gray_bright, bg = colors.bg_mid },
89- },
90- command = {
91- a = { fg = colors.bg, bg = colors.yellow, gui = 'bold' },
92- b = { fg = colors.fg, bg = colors.bg_lighter },
93- c = { fg = colors.gray_bright, bg = colors.bg_mid },
94- },
95- terminal = {
96- a = { fg = colors.bg, bg = colors.cyan, gui = 'bold' },
97- b = { fg = colors.fg, bg = colors.bg_lighter },
98- c = { fg = colors.gray_bright, bg = colors.bg_mid },
99- },
100- inactive = {
101- a = { fg = colors.gray, bg = colors.bg_mid, gui = 'bold' },
102- b = { fg = colors.gray, bg = colors.bg_mid },
103- c = { fg = colors.gray, bg = colors.bg },
104- },
105- }
106-
107- require("lualine").setup({
108- options = { theme = habamax_lualine }
109- })
110- end
52+ opts = {
53+ options = {
54+ theme = 'auto',
55+ },
56+ },
11157 },
11258
11359 -- File tree sidebar
@@ -259,6 +205,9 @@ require("lazy").setup({
259205 {
260206 "sacenox/vim-ai-complete",
261207 cmd = { "Ai" },
208+ opts = {
209+ command = { "agent", "--print", "--mode", "ask", "{prompt}" },
210+ },
262211 }
263212 },
264213 -- Configure any other settings here. See the documentation for more details.
@@ -289,6 +238,7 @@ keymap('n', '<leader>d', function()
289238 end, { desc = 'Open diagnostics quickfix list' })
290239
291240 -- Plugin keybinds
241+keymap('x', '<leader>a', ':Ai<CR>', { noremap = true, silent = true, desc = 'AI complete selection' })
292242 keymap('n', '<leader>e', ':NvimTreeToggle<CR>', opts)
293243 keymap('n', '<leader>f', ':Telescope find_files<CR>', opts)