This commit is contained in:
Јован Ђокић-Шумарац 2025-08-15 00:20:09 +02:00
parent 98d8a599c6
commit 2993196769
5 changed files with 204 additions and 171 deletions

View file

@ -1,53 +1,51 @@
local espresso = require('catppuccin') local espresso = require('catppuccin')
local color_overrides = { local color_overrides = {
macchiato = { macchiato = {
rosewater = '#F5B8AB', rosewater = '#F5B8AB',
flamingo = '#F29D9D', flamingo = '#F29D9D',
pink = '#AD6FF7', pink = '#AD6FF7',
mauve = '#FF8F40', mauve = '#FF8F40',
red = '#E66767', red = '#E66767',
maroon = '#EB788B', maroon = '#EB788B',
peach = '#FAB770', peach = '#FAB770',
yellow = '#FACA64', yellow = '#FACA64',
green = '#70CF67', green = '#70CF67',
teal = '#4CD4BD', teal = '#4CD4BD',
sky = '#61BDFF', sky = '#61BDFF',
sapphire = '#4BA8FA', sapphire = '#4BA8FA',
blue = '#00BFFF', blue = '#00BFFF',
lavender = '#00BBCC', lavender = '#00BBCC',
text = '#C1C9E6', text = '#C1C9E6',
subtext1 = '#A3AAC2', subtext1 = '#A3AAC2',
subtext0 = '#8E94AB', subtext0 = '#8E94AB',
overlay2 = '#7D8296', overlay2 = '#7D8296',
overlay1 = '#676B80', overlay1 = '#676B80',
overlay0 = '#464957', overlay0 = '#464957',
surface2 = '#3A3D4A', surface2 = '#3A3D4A',
surface1 = '#2F313D', surface1 = '#2F313D',
surface0 = '#1D1E29', surface0 = '#1D1E29',
base = '#0b0b0b', base = '#0b0b0b',
mantle = '#11111a', mantle = '#11111a',
crust = '#191926', crust = '#191926',
}, },
} }
local integrations = { local integrations = {
cmp = true, cmp = true,
gitsigns = true, gitsigns = true,
treesitter = true, treesitter = true,
telescope = { telescope = {
enabled = true, enabled = true,
style = 'nvchad', style = 'nvchad',
}, },
mini = { mini = {
enabled = true, enabled = true,
}, },
} }
espresso.setup({ espresso.setup({
flavour = 'macchiato', flavour = 'macchiato',
color_overrides = color_overrides, color_overrides = color_overrides,
integrations = integrations, integrations = integrations,
}) })

View file

@ -23,7 +23,7 @@ local keymaps = {
{ 'n', 'N', 'Nzzzv', { noremap = true } }, { 'n', 'N', 'Nzzzv', { noremap = true } },
-- Telescope mappings -- Telescope mappings
{ 'n', '<leader>ff', '<cmd>Telescope find_files<CR>' }, { 'n', '<leader>ff', "<cmd>lua require('telescope.builtin').find_files({ find_command = {'rg', '--files', '--hidden', '-g', '!.git' }})<CR>" },
{ 'n', '<leader>fb', '<cmd>Telescope buffers<CR>' }, { 'n', '<leader>fb', '<cmd>Telescope buffers<CR>' },
{ 'n', '<leader>fh', '<cmd>Telescope help_tags<CR>' }, { 'n', '<leader>fh', '<cmd>Telescope help_tags<CR>' },
{ 'n', '<leader>fg', '<cmd>Telescope live_grep<CR>' }, { 'n', '<leader>fg', '<cmd>Telescope live_grep<CR>' },

View file

@ -1,41 +1,46 @@
vim.g.mapleader = ' ' local opts = {
vim.o.autoindent = true autoindent = true,
vim.o.backup = false backup = false,
vim.o.clipboard = 'unnamedplus' clipboard = 'unnamedplus',
-- vim.o.cmdheight = 0 -- cmdheight = 0,
vim.o.compatible = false compatible = false,
vim.o.cursorline = true cursorline = true,
vim.o.expandtab = true expandtab = true,
vim.o.hlsearch = true hlsearch = true,
vim.o.ignorecase = true ignorecase = true,
vim.o.inccommand = 'split' inccommand = 'split',
vim.o.incsearch = true incsearch = true,
vim.o.list = true list = true,
vim.o.mouse = 'a' mouse = 'v',
vim.o.mouse = 'v' number = true,
vim.o.number = true relativenumber = true,
vim.o.relativenumber = true shiftwidth = 4,
vim.o.shiftwidth = 4 showmatch = true,
vim.o.showmatch = true signcolumn = 'yes',
vim.o.signcolumn = 'yes' -- signcolumn = 'yes:1',
-- vim.o.signcolumn = 'yes:1' smartindent = true,
vim.o.smartindent = true smarttab = false,
vim.o.smarttab = false softtabstop = 4,
vim.o.softtabstop = 4 splitbelow = true,
vim.o.splitbelow = true splitkeep = 'screen',
vim.o.splitkeep = 'screen' splitright = true,
vim.o.splitright = true startofline = false,
vim.o.startofline = false swapfile = false,
vim.o.swapfile = false tabstop = 4,
vim.o.tabstop = 4 termguicolors = true,
vim.o.termguicolors = true ttyfast = true,
vim.o.ttyfast = true undofile = true,
vim.o.undofile = true wildmode = 'longest,list',
vim.o.wildmode = 'longest,list' winborder = 'rounded',
vim.o.winborder = 'rounded' wrap = false,
vim.o.wrap = false background = 'dark',
}
vim.o.background = 'dark' for option, value in pairs(opts) do
vim.o[option] = value
end
vim.g.mapleader = ' '
vim.cmd.colorscheme('catppuccin') vim.cmd.colorscheme('catppuccin')
vim.api.nvim_set_hl(0, 'Normal', { bg = 'none' }) vim.api.nvim_set_hl(0, 'Normal', { bg = 'none' })

View file

@ -1,76 +1,110 @@
local pack = require 'pack' local pack = require 'pack'
local plugins = { local plugins = {
'catppuccin/nvim', 'catppuccin/nvim',
'nvim-treesitter/nvim-treesitter', 'nvim-treesitter/nvim-treesitter',
{ url = 'nvim-telescope/telescope.nvim',
dependencies = { 'nvim-lua/plenary.nvim' },
setup = true },
{ url = 'renerocksai/telekasten.nvim', {
dependencies = { 'nvim-telescope/telescope.nvim' }, url = 'OXY2DEV/markview.nvim',
setup = function() setup = true
require('telekasten').setup({ },
home = vim.fn.expand("~/zettelkasten"),
})
end },
{ url = 'echasnovski/mini.cursorword', {
setup = true }, url = 'lewis6991/gitsigns.nvim',
setup = true
},
{ url = 'echasnovski/mini.pick', {
setup = true }, url = 'nvim-telescope/telescope.nvim',
dependencies = { 'nvim-lua/plenary.nvim' },
setup = true
},
{ url = 'echasnovski/mini.starter', {
setup = true }, url = 'renerocksai/telekasten.nvim',
dependencies = { 'nvim-telescope/telescope.nvim' },
setup = function()
require('telekasten').setup({
home = vim.fn.expand("~/zettelkasten"),
})
end
},
{ url = 'echasnovski/mini.trailspace', {
setup = true }, url = 'echasnovski/mini.cursorword',
setup = true
},
{ url = 'stevearc/oil.nvim', {
setup = true }, url = 'echasnovski/mini.starter',
setup = true
},
{ url = 'svampkorg/moody.nvim', {
setup = true }, url = 'echasnovski/mini.trailspace',
setup = true
},
{ url = 'greggh/claude-code.nvim', {
setup = function () url = 'stevearc/oil.nvim',
require("claude-code").setup({ setup = true
window = { },
position = "float",
float = {
width = "70%",
height = "60%",
row = "60%",
col = "center",
relative = "editor",
border = "rounded",
},
},
})
end },
{ url = 'nvim-lualine/lualine.nvim', {
dependencies = { 'nvim-tree/nvim-web-devicons' }, url = 'svampkorg/moody.nvim',
setup = function () setup = true
require('lualine').setup({ },
options = {
section_separators = { left = '', right = '' },
component_separators = { left = '', right = '' },
}
})
end },
{ url = 'williamboman/mason.nvim', {
dependencies = { url = 'greggh/claude-code.nvim',
{ url = 'williamboman/mason-lspconfig.nvim', setup = true }, setup = function()
'neovim/nvim-lspconfig' require("claude-code").setup({
}, window = {
setup = true }, position = "float",
float = {
width = "70%",
height = "60%",
row = "60%",
col = "center",
relative = "editor",
border = "rounded",
},
},
})
end
},
{ url = 'Saghen/blink.cmp', {
version = "v1.6.0", url = 'nvim-lualine/lualine.nvim',
dependencies = { 'rafamadriz/friendly-snippets' }}, dependencies = { 'nvim-tree/nvim-web-devicons' },
setup = function()
require('lualine').setup({
options = {
section_separators = { left = '', right = '' },
component_separators = { left = '', right = '' },
}
})
end
},
{
url = 'williamboman/mason.nvim',
dependencies = {
'neovim/nvim-lspconfig'
},
setup = true
},
{
url = 'williamboman/mason-lspconfig.nvim',
setup = true
},
{
url = 'Saghen/blink.cmp',
version = "v1.6.0",
dependencies = { 'rafamadriz/friendly-snippets' }
},
} }
pack.setup(plugins) pack.setup(plugins)
@ -83,38 +117,34 @@ vim.opt.conceallevel = 1
-- List of default plugins to disable -- List of default plugins to disable
local default_plugins = { local default_plugins = {
'2html_plugin', '2html_plugin',
'getscript', 'getscript',
'getscriptPlugin', 'getscriptPlugin',
'gzip', 'gzip',
'logipat', 'logipat',
'netrw', 'netrw',
'netrwPlugin', 'netrwPlugin',
'netrwSettings', 'netrwSettings',
'netrwFileHandlers', 'netrwFileHandlers',
'matchit', 'matchit',
'tar', 'tar',
'tarPlugin', 'tarPlugin',
'rrhelper', 'rrhelper',
'spellfile_plugin', 'spellfile_plugin',
'vimball', 'vimball',
'vimballPlugin', 'vimballPlugin',
'zip', 'zip',
'zipPlugin', 'zipPlugin',
'tutor', 'tutor',
'rplugin', 'rplugin',
'syntax', 'syntax',
'synmenu', 'synmenu',
'optwin', 'optwin',
'compiler', 'compiler',
'bugreport', 'bugreport',
'ftplugin' 'ftplugin'
} }
for _, plug in ipairs(default_plugins) do for _, plug in ipairs(default_plugins) do
vim.g['loaded_' .. plug] = 1 vim.g['loaded_' .. plug] = 1
end end

View file

@ -16,7 +16,7 @@ function M.toggle_popup_terminal()
-- Create or reuse terminal buffer -- Create or reuse terminal buffer
if not popup_term.buf or not vim.api.nvim_buf_is_valid(popup_term.buf) then if not popup_term.buf or not vim.api.nvim_buf_is_valid(popup_term.buf) then
popup_term.buf = vim.api.nvim_create_buf(false, true) popup_term.buf = vim.api.nvim_create_buf(false, true)
vim.api.nvim_buf_set_option(popup_term.buf, 'buftype', 'terminal') vim.bo[popup_term.buf].buftype = 'terminal'
end end
-- Calculate popup size -- Calculate popup size