mirror of
https://github.com/szymon-jozef/amazing-dotfiles.git
synced 2026-09-07 12:10:45 +02:00
35 lines
951 B
Lua
35 lines
951 B
Lua
-- Colorscheme --
|
|
vim.cmd.colorscheme "catppuccin-mocha"
|
|
-- Looks --
|
|
vim.opt.relativenumber = true
|
|
vim.opt.number = true
|
|
vim.opt.signcolumn = 'yes'
|
|
vim.opt.cursorline = false
|
|
vim.opt.list = true
|
|
vim.opt.wrap = true
|
|
vim.opt.shiftwidth = 4
|
|
vim.opt.tabstop = 4
|
|
vim.opt.expandtab = true
|
|
vim.opt.list = true
|
|
|
|
-- Highlight line yank --
|
|
vim.api.nvim_create_augroup("YankHighlight", { clear = true })
|
|
vim.api.nvim_create_autocmd("TextYankPost", {
|
|
group = "YankHighlight",
|
|
callback = function()
|
|
vim.highlight.on_yank({ higroup = "IncSearch", timeout = 200 })
|
|
end,
|
|
})
|
|
|
|
-- shared clipboard --
|
|
vim.opt.clipboard = "unnamedplus"
|
|
|
|
-- Language --
|
|
vim.opt.spell = true
|
|
vim.opt.spelllang = { 'pl', 'en' }
|
|
|
|
-- Telescope --
|
|
local builtin = require('telescope.builtin')
|
|
vim.keymap.set('n', '<leader>ff', builtin.find_files, { desc = 'Telescope find files' })
|
|
vim.keymap.set('n', '<leader>fg', builtin.git_files, { desc = 'Telescope find git files' })
|