aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbozo.kopic <bozo@kopic.xyz>2026-02-17 02:41:07 +0100
committerbozo.kopic <bozo@kopic.xyz>2026-02-17 02:41:07 +0100
commitec47c850389e61f69dc413c551e5f2438ce630df (patch)
treebec1695b1aba2a2668860cc5c010fff67b380cc5
parent56b45d7f00a1c70319c836a7cc917b00e5e6d2d0 (diff)
.
-rw-r--r--aerc/aerc.conf4
-rwxr-xr-xinstall.sh23
-rw-r--r--lite-xl/init.lua21
-rwxr-xr-xlite-xl/install.sh1
-rw-r--r--nvim/.luarc.json4
-rw-r--r--nvim/init.lua411
-rw-r--r--nvim/lua/config/keymaps.lua31
-rw-r--r--nvim/lua/config/lazy.lua26
-rw-r--r--nvim/lua/config/options.lua117
-rw-r--r--nvim/lua/plugins/ale.lua17
-rw-r--r--nvim/lua/plugins/init.lua82
-rw-r--r--nvim/lua/plugins/nvim-cmp.lua40
-rw-r--r--nvim/lua/plugins/nvim-lspconfig.lua18
-rw-r--r--nvim/lua/plugins/nvim-tree.lua47
-rw-r--r--nvim/lua/plugins/nvim-treesitter.lua14
-rw-r--r--nvim/lua/plugins/outline.lua23
-rw-r--r--nvim/lua/plugins/telescope.lua31
-rw-r--r--nvim/lua/plugins/undotree.lua9
-rw-r--r--nvim/lua/plugins/which-key.lua18
-rwxr-xr-xradio/sljeme2
-rw-r--r--shell/.profile2
-rw-r--r--shell/zsh/.zshrc1
-rw-r--r--sublime-text/LSP.sublime-settings6
-rw-r--r--sublime-text/Preferences.sublime-settings3
-rw-r--r--sway/config6
-rw-r--r--vm/ubuntu.sh30
26 files changed, 562 insertions, 425 deletions
diff --git a/aerc/aerc.conf b/aerc/aerc.conf
index 34fedc0..bcfeb36 100644
--- a/aerc/aerc.conf
+++ b/aerc/aerc.conf
@@ -2,3 +2,7 @@
mouse-enabled = true
threading-enabled = true
sidebar-width = 40
+
+[filters]
+text/plain = colorize
+text/html = html | colorize
diff --git a/install.sh b/install.sh
index 3b3ee08..724edfc 100755
--- a/install.sh
+++ b/install.sh
@@ -46,12 +46,12 @@ mkdir -p $CONFIG_DIR/cudatext/settings
symlink $DOTFILES_DIR/cudatext/user.json $CONFIG_DIR/cudatext/settings/user.json
# drawio
-if [ -f /usr/share/applications/draw.io.desktop ]; then
- symlink $DOTFILES_DIR/drawio/drawio $BIN_DIR/drawio
- cp /usr/share/applications/draw.io.desktop $APP_DIR
- sed -i "s/^Exec=\\S*/Exec=$(cd $LOCAL_DIR; pwd | sed 's/\//\\\//g')\\/bin\\/drawio/g" \
- $APP_DIR/draw.io.desktop
-fi
+# if [ -f /usr/share/applications/draw.io.desktop ]; then
+# symlink $DOTFILES_DIR/drawio/drawio $BIN_DIR/drawio
+# cp /usr/share/applications/draw.io.desktop $APP_DIR
+# sed -i "s/^Exec=\\S*/Exec=$(cd $LOCAL_DIR; pwd | sed 's/\//\\\//g')\\/bin\\/drawio/g" \
+# $APP_DIR/draw.io.desktop
+# fi
# dunst
symlink $DOTFILES_DIR/dunst $CONFIG_DIR/dunst
@@ -98,6 +98,9 @@ symlink $DOTFILES_DIR/neovide $CONFIG_DIR/neovide
# numen
symlink $DOTFILES_DIR/numen $CONFIG_DIR/numen
+# nvim
+symlink $DOTFILES_DIR/nvim $CONFIG_DIR/nvim
+
# pictures
symlink $DOTFILES_DIR/pictures $PICTURES_DIR
@@ -142,8 +145,8 @@ symlink $DOTFILES_DIR/shell/zsh/.zshrc $HOME/.zshrc
symlink $HOME/.profile $HOME/.zprofile
# sublime-music
-symlink $OPT_DIR/venvs/python312/bin/sublime-music $BIN_DIR/sublime-music
-symlink $DOTFILES_DIR/sublime-music/sublime-music.desktop $APP_DIR/sublime-music.desktop
+# symlink $LOCAL_DIR/venvs/python312/bin/sublime-music $BIN_DIR/sublime-music
+# symlink $DOTFILES_DIR/sublime-music/sublime-music.desktop $APP_DIR/sublime-music.desktop
# sublime-text
mkdir -p $CONFIG_DIR/sublime-text/Packages/User
@@ -168,10 +171,6 @@ symlink $DOTFILES_DIR/tmux $CONFIG_DIR/tmux
# vm
symlink $DOTFILES_DIR/vm/run.sh $BIN_DIR/vm
-# nvim
-mkdir -p $CONFIG_DIR/nvim
-symlink $DOTFILES_DIR/nvim/init.lua $CONFIG_DIR/nvim/init.lua
-
# waybar
symlink $DOTFILES_DIR/waybar $CONFIG_DIR/waybar
diff --git a/lite-xl/init.lua b/lite-xl/init.lua
index 110c91e..f467294 100644
--- a/lite-xl/init.lua
+++ b/lite-xl/init.lua
@@ -10,6 +10,26 @@ config.ignore_files = {
config.indent_size = 4
+config.plugins.miq.plugins = {
+ 'ephemeral_tabs',
+ 'eval',
+ 'fontconfig',
+ 'gitstatus',
+ 'indentguide',
+ 'minimap',
+ 'scalestatus',
+ 'search_ui',
+ 'select_colorscheme',
+ 'selectionhighlight',
+ 'sort',
+ 'spellcheck',
+ {'lite-xl-scm', name = 'scm'},
+ {'vincens2005/lite-xl-gitdiff-highlight', name = 'gitdiff_highlight'},
+ 'liquidev/lintplus',
+ 'lite-xl/lite-xl-lsp',
+}
+
+
local fontconfig = require "plugins.fontconfig"
fontconfig.use {
@@ -17,7 +37,6 @@ fontconfig.use {
code_font = { name = 'monospace', size = 14 * SCALE },
}
-
config.plugins.nerdicons = {
use_default_dir_icons = true
}
diff --git a/lite-xl/install.sh b/lite-xl/install.sh
index f65b1de..dc4514d 100755
--- a/lite-xl/install.sh
+++ b/lite-xl/install.sh
@@ -54,6 +54,7 @@ curl -L -o plugins/minimap.lua https://raw.githubusercontent.com/lite-xl/lite-xl
# nerdicons
curl -L -o plugins/nerdicons.lua https://raw.githubusercontent.com/lite-xl/lite-xl-plugins/master/plugins/nerdicons.lua
+curl -L -o libraries/font_symbols_nerdfont_mono_regular.lua https://raw.githubusercontent.com/lite-xl/lite-xl-plugins/master/plugins/font_symbols_nerdfont_mono_regular.lua
# scalestatus
curl -L -o plugins/scalestatus.lua https://raw.githubusercontent.com/lite-xl/lite-xl-plugins/master/plugins/scalestatus.lua
diff --git a/nvim/.luarc.json b/nvim/.luarc.json
new file mode 100644
index 0000000..beead3c
--- /dev/null
+++ b/nvim/.luarc.json
@@ -0,0 +1,4 @@
+{
+ "diagnostics.globals": ["vim"]
+}
+
diff --git a/nvim/init.lua b/nvim/init.lua
index dd95e3e..0c7a46e 100644
--- a/nvim/init.lua
+++ b/nvim/init.lua
@@ -1,409 +1,4 @@
--- use modern vim
-vim.o.compatible = false
-
--- dont use backup files
-vim.o.backup = false
-vim.o.writebackup = false
-vim.o.swapfile = false
-
--- allow unsaved buffers
-vim.o.hidden = true
-
--- enable mouse
-vim.o.mouse = 'a'
-
--- display tabs and trailing spaces
-vim.o.list = true
-vim.o.listchars = 'tab:»·,trail:·,nbsp:·'
-
--- search options
-vim.o.incsearch = true
-vim.o.hlsearch = true
-
--- backspace in insert mode
-vim.o.backspace = "indent,eol,start"
-
--- no sound
-vim.o.visualbell = true
-
--- set encoding
-vim.o.encoding = "utf-8"
-vim.o.fileencoding = "utf-8"
-
--- show commands
-vim.o.showcmd = true
-
--- file format
-vim.o.fileformats = "unix,dos"
-
--- disable conceal
-vim.g.vim_json_conceal = 0
-vim.g.markdown_syntax_conceal = 0
--- autocmd FileType json set conceallevel=0
-vim.o.conceallevel = 0
-vim.api.nvim_create_autocmd({"FileType"}, {
- pattern = "json",
- command = "set conceallevel=0"
-})
-
--- show line numbers
-vim.o.number = true
-
--- 80 character line length highlight
-vim.o.colorcolumn = "80"
-
--- highlight current line
-vim.o.cursorline = true
-
--- set tab width and use spaces for tabs
-vim.o.tabstop = 4
-vim.o.shiftwidth = 4
-vim.o.softtabstop = 4
-vim.o.expandtab = true
-
--- disable netrw
-vim.g.loaded_netrw = 1
-vim.g.loaded_netrwPlugin = 1
-
--- set colours
-vim.opt.termguicolors = true
-
--- use system clipboard
-vim.o.clipboard = ''
-vim.keymap.set('n', '""y', '""y')
-vim.keymap.set('n', '""yy', '""yy')
-vim.keymap.set('n', '""p', '""p')
-vim.keymap.set('n', '""P', '""P')
-vim.keymap.set('n', 'y', function() return (vim.v.register == '"' and '"+' or '') .. 'y' end, { expr = true })
-vim.keymap.set('n', 'yy', function() return (vim.v.register == '"' and '"+' or '') .. 'yy' end, { expr = true })
-vim.keymap.set('n', 'p', function() return (vim.v.register == '"' and '"+' or '') .. 'p' end, { expr = true })
-vim.keymap.set('n', 'P', function() return (vim.v.register == '"' and '"+' or '') .. 'P' end, { expr = true })
-
--- copy/paste
-vim.keymap.set('n', '<C-x>', '"+dd')
-vim.keymap.set('v', '<C-x>', '"+d')
-vim.keymap.set('n', '<C-c>', '"+yy')
-vim.keymap.set('v', '<C-c>', '"+y')
-vim.keymap.set({'n', 'v'}, '<C-v>', '"+p')
-vim.keymap.set('i', '<C-v>', '<C-r>+')
-
--- make files use regular tabs
-vim.api.nvim_create_autocmd({"FileType"}, {
- pattern = "make",
- command = "set tabstop=4 shiftwidth=8 softtabstop=0 noexpandtab"
-})
-
--- trim whitespace
-vim.keymap.set('n', '<Leader>wt', [[:%s/\s\+$//e<cr>]])
-
--- reload vimrc on change
-vim.api.nvim_create_augroup("reload_vimrc", {})
-vim.api.nvim_create_autocmd({"BufWritePost"}, {
- group = "reload_vimrc",
- pattern = vim.env.MYVIMRC,
- callback = function()
- vim.cmd "source $MYVIMRC"
- require('packer').sync()
- -- require('packer').compile()
- end
-})
-
--- gui settings
-vim.o.linespace = 4
--- vim.o.guifont = "monospace:h12"
-
--- neovide settings
-if vim.g.neovide then
- vim.g.neovide_cursor_animation_length = 0.01
- vim.g.neovide_cursor_trail_length = 0.01
- vim.g.neovide_cursor_vfx_mode = ""
- vim.g.neovide_remember_window_size = true
- vim.g.neovide_scale_factor = 1.0
- vim.keymap.set('n', '<C-=>', function()
- vim.g.neovide_scale_factor = vim.g.neovide_scale_factor * 1.1
- end)
- vim.keymap.set('n', '<C-->', function()
- vim.g.neovide_scale_factor = vim.g.neovide_scale_factor / 1.1
- end)
-end
-
--- bootstrap packer
-local bootstrap_packer = (function()
- local packer_path = vim.fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
- if vim.fn.empty(vim.fn.glob(packer_path)) > 0 then
- vim.fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', packer_path})
- vim.cmd('packadd packer.nvim')
- return true
- end
- return false
-end)()
-
--- plugins
-require('packer').startup {
- function(use)
-
- use 'wbthomason/packer.nvim'
-
- use {
- 'tanvirtin/monokai.nvim',
- config = function()
- require('monokai').setup {}
- end
- }
-
- use 'christoomey/vim-tmux-navigator'
-
- -- use 'jiangmiao/auto-pairs'
-
- use {
- 'majutsushi/tagbar',
- config = function()
- vim.keymap.set('', '<F6>', vim.cmd.TagbarToggle)
- end
- }
-
- use 'mg979/vim-visual-multi'
-
- use {
- 'nvim-tree/nvim-web-devicons',
- config = function()
- require('nvim-web-devicons').setup {
- color_icons = true
- }
- end
- }
-
- use {
- 'nvim-tree/nvim-tree.lua',
- requires = {
- 'nvim-lua/plenary.nvim'
- },
- after = {
- 'nvim-web-devicons'
- },
- config = function()
-
- require("nvim-tree").setup {
- filters = {
- dotfiles = true
- },
- update_focused_file = {
- enable = true
- },
- renderer = {
- icons = {
- webdev_colors = true,
- git_placement = 'signcolumn'
- },
- highlight_opened_files = 'icon'
- },
- view = {
- signcolumn = 'yes'
- },
- actions = {
- change_dir = {
- global = true
- }
- },
- live_filter = {
- always_show_folders = false
- }
- }
- vim.keymap.set('', '<F5>', vim.cmd.NvimTreeToggle)
- end
- }
-
- use {
- 'akinsho/bufferline.nvim',
- requires = 'nvim-tree/nvim-web-devicons',
- config = function()
- require("bufferline").setup()
- end
- }
-
- use {
- 'nvim-lualine/lualine.nvim',
- after = {
- 'monokai.nvim'
- },
- config = function()
- require('lualine').setup()
- end
- }
-
- use {
- "lukas-reineke/indent-blankline.nvim",
- config = function()
- require("ibl").setup {
- indent = {
- char = '┊'
- },
- scope = {
- enabled = false
- }
- }
- end
- }
-
- use {
- 'nvim-telescope/telescope.nvim',
- requires = {
- 'BurntSushi/ripgrep',
- 'nvim-lua/plenary.nvim',
- 'cljoly/telescope-repo.nvim'
- },
- config = function()
- local telescope = require('telescope')
- local builtin = require('telescope.builtin')
- telescope.setup {
- extensions = {
- repo = {
- list = {
- search_dirs = { '~/repos' }
- }
- }
- }
- }
- telescope.load_extension("repo")
- vim.keymap.set('', '<F8>', builtin.builtin)
- vim.keymap.set('', '<leader>ff', builtin.find_files)
- vim.keymap.set('', '<leader>fg', builtin.live_grep)
- vim.keymap.set('', '<leader>fb', builtin.buffers)
- vim.keymap.set('', '<leader>fh', builtin.help_tags)
- vim.keymap.set('', '<leader>fr', telescope.extensions.repo.list)
- end
- }
-
- use {
- "folke/which-key.nvim",
- config = function()
- vim.o.timeout = true
- vim.o.timeoutlen = 500
- require("which-key").setup {
- }
- end
- }
-
- use {
- 'mrjones2014/legendary.nvim',
- requires = { "stevearc/dressing.nvim" },
- config = function()
- vim.keymap.set('', '<F9>', vim.cmd.Legendary)
- require('legendary').setup {
- }
- end
- }
-
- use {
- 'mbbill/undotree',
- config = function()
- vim.g.undotree_WindowLayout = 4
- vim.keymap.set('', '<F7>', vim.cmd.UndotreeToggle)
- end
- }
-
- use {
- 'lewis6991/gitsigns.nvim',
- config = function()
- require('gitsigns').setup()
- end
- }
-
- -- use {
- -- 'wfxr/minimap.vim',
- -- after = {
- -- 'monokai.nvim'
- -- },
- -- config = function()
- -- vim.g.minimap_highlight_range = 1
- -- vim.g.minimap_git_colors = 1
- -- vim.keymap.set('', '<F4>', vim.cmd.MinimapToggle)
- -- end
- -- }
-
- use {
- 'numToStr/Comment.nvim',
- config = function()
- require('Comment').setup()
- end
- }
-
- use 'rafamadriz/neon'
-
- -- use {
- -- 'nvim-treesitter/nvim-treesitter',
- -- run = ':TSUpdate',
- -- config = function()
- -- require('nvim-treesitter.configs').setup {
- -- ensure_installed = {
- -- 'python', 'bash', 'lua', 'javascript', 'c', 'json', 'html'
- -- },
- -- highlight = {
- -- enable = true
- -- }
- -- }
- -- end
- -- }
-
- use {
- 'neovim/nvim-lspconfig',
- config = function()
- local lspconfig = require('lspconfig')
- -- lspconfig.jedi_language_server.setup {}
- -- lspconfig.bashls.setup {}
- -- lspconfig.clangd.setup {
- -- cmd = {'clangd', '--header-insertion=never'}
- -- }
- -- lspconfig.tsserver.setup {}
- end
- }
-
- use {
- 'hrsh7th/nvim-cmp',
- requires = {
- 'hrsh7th/cmp-nvim-lsp',
- 'hrsh7th/cmp-buffer',
- 'hrsh7th/cmp-vsnip',
- 'hrsh7th/vim-vsnip'
- },
- config = function()
- local cmp = require('cmp')
- cmp.setup {
- completion = {
- autocomplete = false
- },
- snippet = {
- expand = function (args)
- vim.fn["vsnip#anonymous"](args.body)
- end
- },
- mapping = cmp.mapping.preset.insert({
- ['<C-Space>'] = function()
- if cmp.visible() then
- cmp.close()
- else
- cmp.complete()
- end
- end,
- ['<C-e>'] = cmp.mapping.abort(),
- ['<CR>'] = cmp.mapping.confirm({ select = true })
- }),
- sources = cmp.config.sources({
- { name = 'nvim_lsp' },
- { name = 'buffer' }
- })
- }
- end
- }
-
- if bootstrap_packer then
- require('packer').sync()
- end
-
- end,
- config = {
- compile_on_sync = true,
- auto_reload_compiled = true
- }
-}
+require('config.options')
+require('config.keymaps')
+require('config.lazy')
diff --git a/nvim/lua/config/keymaps.lua b/nvim/lua/config/keymaps.lua
new file mode 100644
index 0000000..073233f
--- /dev/null
+++ b/nvim/lua/config/keymaps.lua
@@ -0,0 +1,31 @@
+
+-- -- use system clipboard
+-- vim.o.clipboard = ''
+-- vim.keymap.set('n', '""y', '""y')
+-- vim.keymap.set('n', '""yy', '""yy')
+-- vim.keymap.set('n', '""p', '""p')
+-- vim.keymap.set('n', '""P', '""P')
+-- vim.keymap.set('n', 'y', function() return (vim.v.register == '"' and '"+' or '') .. 'y' end, { expr = true })
+-- vim.keymap.set('n', 'yy', function() return (vim.v.register == '"' and '"+' or '') .. 'yy' end, { expr = true })
+-- vim.keymap.set('n', 'p', function() return (vim.v.register == '"' and '"+' or '') .. 'p' end, { expr = true })
+-- vim.keymap.set('n', 'P', function() return (vim.v.register == '"' and '"+' or '') .. 'P' end, { expr = true })
+--
+-- -- copy/paste
+-- vim.keymap.set('n', '<C-x>', '"+dd')
+-- vim.keymap.set('v', '<C-x>', '"+d')
+-- vim.keymap.set('n', '<C-c>', '"+yy')
+-- vim.keymap.set('v', '<C-c>', '"+y')
+-- vim.keymap.set({'n', 'v'}, '<C-v>', '"+p')
+-- vim.keymap.set('i', '<C-v>', '<C-r>+')
+
+-- trim whitespace
+vim.keymap.set('n', '<leader>wt', [[:%s/\s\+$//e<cr>]], {desc = 'Trim whitespace'})
+
+
+
+-- toggle virtual text
+vim.keymap.set('n', '<leader>tv', function()
+ vim.diagnostic.config {virtual_text = not vim.diagnostic.config().virtual_text}
+end, {desc = 'Toggle diagnostics virtual text'})
+
+
diff --git a/nvim/lua/config/lazy.lua b/nvim/lua/config/lazy.lua
new file mode 100644
index 0000000..d604abf
--- /dev/null
+++ b/nvim/lua/config/lazy.lua
@@ -0,0 +1,26 @@
+local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
+if not (vim.uv or vim.loop).fs_stat(lazypath) then
+ local lazyrepo = "https://github.com/folke/lazy.nvim.git"
+ local out = vim.fn.system({
+ "git", "clone", "--filter=blob:none", "--branch=stable",
+ lazyrepo,
+ lazypath
+ })
+ if vim.v.shell_error ~= 0 then
+ vim.api.nvim_echo({
+ {"Failed to clone lazy.nvim:\n", "ErrorMsg"},
+ {out, "WarningMsg"},
+ {"\nPress any key to exit..."},
+ }, true, {})
+ vim.fn.getchar()
+ os.exit(1)
+ end
+end
+vim.opt.rtp:prepend(lazypath)
+
+require('lazy').setup {
+ spec = {
+ {import = 'plugins'}
+ },
+ lockfile = vim.fn.stdpath("data") .. "/lazy/lock.json"
+}
diff --git a/nvim/lua/config/options.lua b/nvim/lua/config/options.lua
new file mode 100644
index 0000000..48fcd65
--- /dev/null
+++ b/nvim/lua/config/options.lua
@@ -0,0 +1,117 @@
+-- use modern vim
+vim.o.compatible = false
+
+-- dont use backup files
+vim.o.backup = false
+vim.o.writebackup = false
+vim.o.swapfile = false
+
+-- allow unsaved buffers
+vim.o.hidden = true
+
+-- enable mouse
+vim.o.mouse = 'a'
+
+-- display tabs and trailing spaces
+vim.o.list = true
+vim.o.listchars = 'tab:»·,trail:·,nbsp:·'
+
+-- search options
+vim.o.incsearch = true
+vim.o.hlsearch = true
+
+-- backspace in insert mode
+vim.o.backspace = "indent,eol,start"
+
+-- no sound
+vim.o.visualbell = true
+
+-- set autoread
+vim.o.autoread = true
+
+-- set encoding
+vim.o.encoding = "utf-8"
+vim.o.fileencoding = "utf-8"
+
+-- show commands
+vim.o.showcmd = true
+
+-- file format
+vim.o.fileformats = "unix,dos"
+
+-- set leader
+vim.g.mapleader = " "
+vim.g.maplocalleader = "\\"
+
+-- set system clipboard
+vim.o.clipboard = 'unnamedplus'
+
+-- disable conceal
+vim.g.vim_json_conceal = 0
+vim.g.markdown_syntax_conceal = 0
+vim.o.conceallevel = 0
+vim.api.nvim_create_autocmd({"FileType"}, {
+ pattern = "json",
+ command = "set conceallevel=0"
+})
+
+-- show line numbers
+vim.o.number = true
+
+-- 80 character line length highlight
+vim.o.colorcolumn = "80"
+
+-- highlight current line
+vim.o.cursorline = true
+
+-- set tab width and use spaces for tabs
+vim.o.tabstop = 4
+vim.o.shiftwidth = 4
+vim.o.softtabstop = 4
+vim.o.expandtab = true
+
+-- disable netrw
+vim.g.loaded_netrw = 1
+vim.g.loaded_netrwPlugin = 1
+
+-- set colours
+vim.opt.termguicolors = true
+
+-- make files use regular tabs
+vim.api.nvim_create_autocmd({"FileType"}, {
+ pattern = "make",
+ command = "set tabstop=4 shiftwidth=8 softtabstop=0 noexpandtab"
+})
+
+-- reload vimrc on change
+vim.api.nvim_create_augroup("reload_vimrc", {})
+vim.api.nvim_create_autocmd({"BufWritePost"}, {
+ group = "reload_vimrc",
+ pattern = vim.env.MYVIMRC,
+ callback = function()
+ vim.cmd "source $MYVIMRC"
+ -- require('packer').sync()
+ -- require('packer').compile()
+ end
+})
+
+-- gui settings
+vim.o.linespace = 4
+-- vim.o.guifont = "monospace:h12"
+
+-- neovide settings
+if vim.g.neovide then
+ vim.g.neovide_cursor_animation_length = 0.01
+ vim.g.neovide_cursor_trail_length = 0.01
+ vim.g.neovide_cursor_vfx_mode = ""
+ vim.g.neovide_remember_window_size = true
+ vim.g.neovide_scale_factor = 1.0
+
+ vim.keymap.set('n', '<C-=>', function()
+ vim.g.neovide_scale_factor = vim.g.neovide_scale_factor * 1.1
+ end)
+
+ vim.keymap.set('n', '<C-->', function()
+ vim.g.neovide_scale_factor = vim.g.neovide_scale_factor / 1.1
+ end)
+end
diff --git a/nvim/lua/plugins/ale.lua b/nvim/lua/plugins/ale.lua
new file mode 100644
index 0000000..6219a20
--- /dev/null
+++ b/nvim/lua/plugins/ale.lua
@@ -0,0 +1,17 @@
+do return {} end
+return {
+ {
+ 'dense-analysis/ale',
+ config = function()
+ vim.g.ale_linters_explicit = 1
+ -- vim.g.ale_virtualtext_cursor = 'current'
+ vim.g.ale_virtualtext_cursor = 'disabled'
+ vim.g.ale_linters = {
+ python = {'flake8'},
+ lua = {'lua_language_server'},
+ c = {'clangd'}
+ }
+
+ end
+ }
+}
diff --git a/nvim/lua/plugins/init.lua b/nvim/lua/plugins/init.lua
new file mode 100644
index 0000000..7ad84ab
--- /dev/null
+++ b/nvim/lua/plugins/init.lua
@@ -0,0 +1,82 @@
+return {
+ {
+ 'tanvirtin/monokai.nvim',
+ priority = 100,
+ opts = {}
+ },
+
+ {'christoomey/vim-tmux-navigator'},
+
+ {'mg979/vim-visual-multi'},
+
+ {
+ 'akinsho/bufferline.nvim',
+ dependencies = {
+ 'nvim-tree/nvim-web-devicons'
+ },
+ opts = {}
+ },
+
+ {
+ 'nvim-lualine/lualine.nvim',
+ dependencies = {
+ 'tanvirtin/monokai.nvim'
+ },
+ opts = {}
+ },
+
+ {
+ 'lukas-reineke/indent-blankline.nvim',
+ main = 'ibl',
+ opts = {
+ indent = {
+ char = '┊'
+ },
+ scope = {
+ enabled = false
+ }
+ }
+ },
+
+ {
+ 'lewis6991/gitsigns.nvim',
+ opts = {}
+ },
+
+ -- {
+ -- 'mrjones2014/legendary.nvim',
+ -- dependencies = { "stevearc/dressing.nvim" },
+ -- opts = {},
+ -- init = function()
+ -- vim.keymap.set('', '<F9>', vim.cmd.Legendary)
+ -- end
+ -- },
+
+ -- {
+ -- 'KabbAmine/zeavim.vim',
+ -- init = function()
+ -- vim.keymap.set('', '<F1>', vim.cmd.Zeavim)
+ -- end
+ -- }
+
+ -- {'jiangmiao/auto-pairs'},
+
+ -- {'rafamadriz/neon'},
+
+ -- {
+ -- 'numToStr/Comment.nvim',
+ -- opts = {}
+ -- },
+
+ -- {
+ -- 'wfxr/minimap.vim',
+ -- dependencies = {
+ -- 'tanvirtin/monokai.nvim'
+ -- },
+ -- init = function()
+ -- vim.g.minimap_highlight_range = 0
+ -- vim.g.minimap_git_colors = 0
+ -- vim.keymap.set('', '<F3>', vim.cmd.MinimapToggle)
+ -- end
+ -- },
+}
diff --git a/nvim/lua/plugins/nvim-cmp.lua b/nvim/lua/plugins/nvim-cmp.lua
new file mode 100644
index 0000000..e365000
--- /dev/null
+++ b/nvim/lua/plugins/nvim-cmp.lua
@@ -0,0 +1,40 @@
+return {
+ {
+ 'hrsh7th/nvim-cmp',
+ dependencies = {
+ 'hrsh7th/cmp-nvim-lsp',
+ 'hrsh7th/cmp-buffer',
+ 'hrsh7th/cmp-vsnip',
+ 'hrsh7th/vim-vsnip'
+ },
+ main = 'cmp',
+ opts = function()
+ local cmp = require('cmp')
+ return {
+ completion = {
+ autocomplete = false
+ },
+ snippet = {
+ expand = function (args)
+ vim.fn["vsnip#anonymous"](args.body)
+ end
+ },
+ mapping = cmp.mapping.preset.insert({
+ ['<C-Space>'] = function()
+ if cmp.visible() then
+ cmp.close()
+ else
+ cmp.complete()
+ end
+ end,
+ ['<C-e>'] = cmp.mapping.abort(),
+ ['<CR>'] = cmp.mapping.confirm({ select = true })
+ }),
+ sources = cmp.config.sources({
+ { name = 'nvim_lsp' },
+ { name = 'buffer' }
+ })
+ }
+ end
+ }
+}
diff --git a/nvim/lua/plugins/nvim-lspconfig.lua b/nvim/lua/plugins/nvim-lspconfig.lua
new file mode 100644
index 0000000..0be2f98
--- /dev/null
+++ b/nvim/lua/plugins/nvim-lspconfig.lua
@@ -0,0 +1,18 @@
+return {
+ {
+ 'neovim/nvim-lspconfig',
+ init = function()
+ -- vim.lsp.config('lua_ls', {
+ -- cmd = {'lua-language-server'},
+ -- filetypes = {'lua'},
+ -- root_markers = {'.luarc.json', '.git'}
+ -- })
+
+ -- vim.lsp.config('clangd', {
+ -- cmd = {'clangd', '--header-insertion=never'}
+ -- })
+
+ vim.lsp.enable('lua_ls')
+ end
+ }
+}
diff --git a/nvim/lua/plugins/nvim-tree.lua b/nvim/lua/plugins/nvim-tree.lua
new file mode 100644
index 0000000..9cad99a
--- /dev/null
+++ b/nvim/lua/plugins/nvim-tree.lua
@@ -0,0 +1,47 @@
+return {
+ {
+ 'nvim-tree/nvim-tree.lua',
+ dependencies = {
+ 'nvim-lua/plenary.nvim',
+ 'nvim-tree/nvim-web-devicons'
+ },
+ opts = {
+ filters = {
+ dotfiles = false
+ },
+ update_focused_file = {
+ enable = true
+ },
+ renderer = {
+ icons = {
+ webdev_colors = true,
+ git_placement = 'signcolumn'
+ },
+ highlight_git = 'name'
+ },
+ view = {
+ signcolumn = 'yes'
+ },
+ actions = {
+ change_dir = {
+ global = true
+ }
+ },
+ live_filter = {
+ always_show_folders = false
+ },
+ git = {
+ ignore = false
+ }
+ },
+ init = function()
+ -- vim.api.nvim_create_autocmd({"VimEnter"}, {
+ -- callback = function()
+ -- require("nvim-tree.api").tree.open()
+ -- end
+ -- })
+
+ vim.keymap.set('n', '<leader>tt', vim.cmd.NvimTreeToggle, {desc = "Toggle tree (nvim-tree)"})
+ end
+ }
+}
diff --git a/nvim/lua/plugins/nvim-treesitter.lua b/nvim/lua/plugins/nvim-treesitter.lua
new file mode 100644
index 0000000..ba79956
--- /dev/null
+++ b/nvim/lua/plugins/nvim-treesitter.lua
@@ -0,0 +1,14 @@
+return {
+ {
+ 'nvim-treesitter/nvim-treesitter',
+ build = ':TSUpdate',
+ opts = {
+ ensure_installed = {
+ 'python', 'bash', 'lua', 'javascript', 'c', 'json', 'html'
+ },
+ highlight = {
+ enable = true
+ }
+ }
+ }
+}
diff --git a/nvim/lua/plugins/outline.lua b/nvim/lua/plugins/outline.lua
new file mode 100644
index 0000000..cecd7b3
--- /dev/null
+++ b/nvim/lua/plugins/outline.lua
@@ -0,0 +1,23 @@
+return {
+ -- {
+ -- 'majutsushi/tagbar',
+ -- init = function()
+ -- vim.keymap.set('n', '<leader>to', vim.cmd.TagbarToggle, {desc = 'Toggle outline (tagbar)'})
+ -- end
+ -- }
+ {
+ "hedyhli/outline.nvim",
+ dependencies = {
+ 'epheien/outline-treesitter-provider.nvim',
+ 'epheien/outline-ctags-provider.nvim'
+ },
+ opts = {
+ providers = {
+ priority = {'lsp', 'ctags', 'treesitter'}
+ }
+ },
+ init = function()
+ vim.keymap.set('n', '<leader>to', vim.cmd.Outline, {desc = 'Toggle outline (outline)'})
+ end
+ }
+}
diff --git a/nvim/lua/plugins/telescope.lua b/nvim/lua/plugins/telescope.lua
new file mode 100644
index 0000000..67d55bd
--- /dev/null
+++ b/nvim/lua/plugins/telescope.lua
@@ -0,0 +1,31 @@
+return {
+ {
+ 'nvim-telescope/telescope.nvim',
+ dependencies = {
+ 'BurntSushi/ripgrep',
+ 'nvim-lua/plenary.nvim',
+ 'cljoly/telescope-repo.nvim'
+ },
+ opts = {
+ extensions = {
+ repo = {
+ list = {
+ search_dirs = { '~/repos' }
+ }
+ }
+ }
+ },
+ init = function()
+ local telescope = require('telescope')
+ local builtin = require('telescope.builtin')
+ telescope.load_extension('repo')
+ vim.keymap.set('n', '<leader>ff', builtin.find_files, {desc = 'Find files'})
+ vim.keymap.set('n', '<leader>fg', builtin.live_grep, {desc = 'Live grep'})
+ vim.keymap.set('n', '<leader>fb', builtin.buffers, {desc = 'List buffers'})
+ vim.keymap.set('n', '<leader>fh', builtin.help_tags, {desc = 'List help tags'})
+ vim.keymap.set('n', '<leader>fr', telescope.extensions.repo.list, {desc = 'List repos'})
+ vim.keymap.set('n', '<leader>fc', builtin.commands, {desc = 'List commands'})
+ vim.keymap.set('n', '<leader>fk', builtin.keymaps, {desc = 'List keymaps'})
+ end
+ }
+}
diff --git a/nvim/lua/plugins/undotree.lua b/nvim/lua/plugins/undotree.lua
new file mode 100644
index 0000000..2e8aad2
--- /dev/null
+++ b/nvim/lua/plugins/undotree.lua
@@ -0,0 +1,9 @@
+return {
+ {
+ 'mbbill/undotree',
+ init = function()
+ vim.g.undotree_WindowLayout = 4
+ vim.keymap.set('n', '<leader>tu', vim.cmd.UndotreeToggle, {desc = 'Toggle undo (undotree)'})
+ end
+ }
+}
diff --git a/nvim/lua/plugins/which-key.lua b/nvim/lua/plugins/which-key.lua
new file mode 100644
index 0000000..ca741e3
--- /dev/null
+++ b/nvim/lua/plugins/which-key.lua
@@ -0,0 +1,18 @@
+return {
+ {
+ "folke/which-key.nvim",
+ opts = {
+ spec = {
+ {'<leader>t', group = 'toggle'}
+ }
+ },
+ init = function()
+ vim.o.timeout = true
+ vim.o.timeoutlen = 500
+
+ vim.keymap.set('n', '<leader>?', function()
+ require("which-key").show({global = true})
+ end, {desc = 'Global keymaps (which-key)'})
+ end
+ }
+}
diff --git a/radio/sljeme b/radio/sljeme
index ab94d35..ab12e18 100755
--- a/radio/sljeme
+++ b/radio/sljeme
@@ -1,6 +1,6 @@
#!/bin/sh
-URL=https://25593.live.streamtheworld.com/SLJEMEAAC.aac
+URL=https://27943.live.streamtheworld.com/SLJEMEAAC.aac
# mplayer -ao pulse -quiet $URL | ts '[%Y-%m-%d %H:%M:%S]'
exec ffmpeg -v trace -i $URL -f pulse -name ffmpeg "radio sljeme"
diff --git a/shell/.profile b/shell/.profile
index 42f1fad..74ba7b3 100644
--- a/shell/.profile
+++ b/shell/.profile
@@ -35,7 +35,7 @@ append_lua_path() {
# export SWEETHOME3D_JAVA3D=1.6
# export WLR_DRM_NO_MODIFIERS=1
export EDITOR=nvim
-export QT_QPA_PLATFORMTHEME=qt5ct
+export QT_QPA_PLATFORMTHEME=qt6ct
export VISUAL=nvim
prepend_path ~/.local/opt/river/bin
diff --git a/shell/zsh/.zshrc b/shell/zsh/.zshrc
index 0c3568e..9743360 100644
--- a/shell/zsh/.zshrc
+++ b/shell/zsh/.zshrc
@@ -1,6 +1,7 @@
HISTFILE=~/.zsh_history
HISTSIZE=1000
SAVEHIST=1000
+setopt SHARE_HISTORY
export GPG_TTY=$(tty)
diff --git a/sublime-text/LSP.sublime-settings b/sublime-text/LSP.sublime-settings
index b324c32..aa0e69c 100644
--- a/sublime-text/LSP.sublime-settings
+++ b/sublime-text/LSP.sublime-settings
@@ -26,5 +26,11 @@
"enabled": true,
"diagnostics_mode": "open_files"
},
+ "gopls": {
+ "command": ["gopls"],
+ "selector": "source.go",
+ "enabled": true,
+ "diagnostics_mode": "open_files"
+ },
},
}
diff --git a/sublime-text/Preferences.sublime-settings b/sublime-text/Preferences.sublime-settings
index 2015f7b..9d621bd 100644
--- a/sublime-text/Preferences.sublime-settings
+++ b/sublime-text/Preferences.sublime-settings
@@ -65,7 +65,8 @@
"theme": "Adaptive.sublime-theme",
/*"tab_size": 4,*/
"translate_tabs_to_spaces": true,
- "trim_trailing_white_space_on_save": true,
+ "trim_trailing_white_space_on_save": "all",
+ "trim_only_modified_white_space": false,
"update_check": false,
"sublime_merge_path": null,
"show_panel_on_build": false,
diff --git a/sway/config b/sway/config
index a3b8270..a8b0b02 100644
--- a/sway/config
+++ b/sway/config
@@ -1,6 +1,7 @@
set $mod Mod4
-xwayland disable
+#xwayland disable
+xwayland enable
seat seat0 xcursor_theme default 32
@@ -15,6 +16,9 @@ assign [app_id="^tmux_term$"] 9:term
exec ~/.config/sway/init.sh
bindsym {
+ XF86MonBrightnessUp exec brightnessctl set +5%
+ XF86MonBrightnessDown exec brightnessctl set 5%-
+
$mod+Return exec foot
$mod+space exec wofi
$mod+Tab layout toggle
diff --git a/vm/ubuntu.sh b/vm/ubuntu.sh
new file mode 100644
index 0000000..d947a4a
--- /dev/null
+++ b/vm/ubuntu.sh
@@ -0,0 +1,30 @@
+: ${VM_CACHE:?} ${VM_DATA:?}
+
+ubuntu_url=http://archive.ubuntu.com/ubuntu/dists/bionic-updates/main/installer-amd64/current/images/netboot/mini.iso
+
+iso_path=$VM_CACHE/ubuntu.iso
+
+image_path=$VM_DATA/ubuntu.qcow2
+
+
+if [ ! -f $iso_path ]; then
+ curl -L -o $iso_path $ubuntu_url
+fi
+
+if [ ! -f $image_path ]; then
+ qemu-img create -f qcow2 $image_path 20G
+fi
+
+exec qemu-system-x86_64 \
+ -enable-kvm \
+ -cpu host \
+ -hda $image_path \
+ -cdrom $iso_path \
+ -m 4G \
+ -device e1000,netdev=net0 \
+ -netdev user,id=net0 \
+ -usb \
+ -device usb-tablet \
+ -vga std \
+ -virtfs local,path=$VM_TMP,mount_tag=shared,security_model=none \
+ "$@"