mirror of https://github.com/Phantop/dotfiles
Compare commits
4 Commits
eeb2d30b26
...
189cfeb80a
Author | SHA1 | Date |
---|---|---|
Phantop | 189cfeb80a | |
Phantop | 53387206d4 | |
Phantop | d99180265d | |
Phantop | 5c8da9db0a |
8
archpkgs
8
archpkgs
|
@ -41,12 +41,9 @@ game-devices-udev
|
|||
gifsicle
|
||||
git
|
||||
gitui
|
||||
gnome-disk-utility
|
||||
gnome-keyring
|
||||
gnome-power-manager
|
||||
gnome-system-monitor
|
||||
hblock
|
||||
htop
|
||||
httrack
|
||||
ifuse
|
||||
imagemagick
|
||||
|
@ -93,8 +90,8 @@ nicotine+
|
|||
ninja
|
||||
nnn
|
||||
noto-fonts-emoji
|
||||
nss-mdns
|
||||
opendoas
|
||||
openssl-1.1
|
||||
opus-tools
|
||||
oxipng
|
||||
p7zip
|
||||
|
@ -123,7 +120,6 @@ qownnotes
|
|||
qpdf
|
||||
qrencode
|
||||
qt5-base
|
||||
qt6-svg
|
||||
qutebrowser-git
|
||||
rclone
|
||||
ripgrep-all
|
||||
|
@ -147,13 +143,13 @@ ttf-ubuntu-font-family
|
|||
tuc
|
||||
upx
|
||||
usbutils
|
||||
valgrind
|
||||
vulkan-intel
|
||||
vulkan-radeon
|
||||
w3m
|
||||
waifu2x-ncnn-vulkan
|
||||
webp-pixbuf-loader
|
||||
wget
|
||||
wimlib
|
||||
xdelta3
|
||||
xdg-utils
|
||||
xf86-input-evdev
|
||||
|
|
|
@ -3,5 +3,5 @@ function alpine
|
|||
set file (curl $url | grep s-2 | tac | sed -n 3p | cut -d\" -f2)
|
||||
mkdir alpine; curl $url/$file | tar xf - -Calpine
|
||||
cp /etc/resolv.conf alpine/etc
|
||||
proot -r alpine -b /proc -b /dev
|
||||
s arch-chroot alpine /bin/ash
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
function undefalte
|
||||
function undeflate
|
||||
fd -t f -x advzip -z0
|
||||
fd -t f -x advdef -z0
|
||||
fd -e pdf -x qpdf --stream-data=uncompress --replace-input --compress-streams=n --recompress-flate --compression-level=0 --optimize-images {}
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
window.ssd * {margin: -99} window, headerbar {border-radius: 0}
|
||||
window.ssd * {margin: -99px} window, headerbar {border-radius: 0}
|
||||
headerbar, headerbar *, headerbar * * { min-height: 0; margin: 0; padding: 0; }
|
||||
.workspace-item { border-left: 1px solid #404040; border-right: 1px solid #404040; }
|
||||
.current-workspace { background-color: #262626 }
|
||||
|
|
100
nvim/init.lua
100
nvim/init.lua
|
@ -1,27 +1,84 @@
|
|||
require "paq" {
|
||||
'ctrlpvim/ctrlp.vim';
|
||||
'dense-analysis/ale';
|
||||
'dracula/vim';
|
||||
'godlygeek/tabular';
|
||||
'lervag/vimtex';
|
||||
'lewis6991/gitsigns.nvim';
|
||||
'lukas-reineke/indent-blankline.nvim';
|
||||
'luukvbaal/nnn.nvim';
|
||||
'RobertAudi/fish.vim';
|
||||
'tpope/vim-commentary';
|
||||
'tpope/vim-sensible';
|
||||
'tpope/vim-sleuth';
|
||||
'vim-airline/vim-airline';
|
||||
'ctrlpvim/ctrlp.vim',
|
||||
'dense-analysis/ale',
|
||||
'echasnovski/mini.nvim',
|
||||
'dracula/vim',
|
||||
'lervag/vimtex',
|
||||
'lewis6991/gitsigns.nvim',
|
||||
'lukas-reineke/indent-blankline.nvim',
|
||||
'luukvbaal/nnn.nvim',
|
||||
'neovim/nvim-lspconfig',
|
||||
'nvim-lua/plenary.nvim',
|
||||
'nvimtools/none-ls.nvim',
|
||||
'tpope/vim-sleuth',
|
||||
'vim-airline/vim-airline',
|
||||
{ 'nvim-treesitter/nvim-treesitter', build = ':TSUpdate' },
|
||||
|
||||
'https://git.sr.ht/~ackyshake/VimCompletesMe.vim';
|
||||
{ 'nvim-treesitter/nvim-treesitter', run = function() vim.cmd 'TSUpdate' end };
|
||||
"L3MON4D3/LuaSnip";
|
||||
"hrsh7th/cmp-buffer";
|
||||
"hrsh7th/cmp-cmdline";
|
||||
"hrsh7th/cmp-nvim-lsp";
|
||||
"hrsh7th/cmp-nvim-lsp-signature-help";
|
||||
"hrsh7th/cmp-path";
|
||||
"hrsh7th/nvim-cmp";
|
||||
|
||||
--'tpope/vim-sensible',
|
||||
--'https://sr.ht/~ackyshake/VimCompletesMe.vim',
|
||||
'williamboman/mason-lspconfig.nvim',
|
||||
{ 'williamboman/mason.nvim', build = ':MasonUpdate' },
|
||||
}
|
||||
|
||||
require("gitsigns").setup()
|
||||
require("ibl").setup()
|
||||
require("nnn").setup()
|
||||
require("nvim-treesitter.configs").setup {
|
||||
highlight = { enable = true, additional_vim_regex_highlighting = false }
|
||||
require("nvim-treesitter.configs").setup({highlight = {enable = true}})
|
||||
require("mason").setup()
|
||||
require("mason-lspconfig").setup()
|
||||
|
||||
local null_ls = require("null-ls")
|
||||
null_ls.setup({sources = {
|
||||
null_ls.builtins.code_actions.shellcheck,
|
||||
null_ls.builtins.diagnostics.shellcheck,
|
||||
null_ls.builtins.formatting.phpcbf,
|
||||
null_ls.builtins.diagnostics.phpcs
|
||||
}})
|
||||
|
||||
local has_words_before = function()
|
||||
unpack = unpack or table.unpack
|
||||
local line, col = unpack(vim.api.nvim_win_get_cursor(0))
|
||||
return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil
|
||||
end
|
||||
|
||||
local cmp = require("cmp")
|
||||
cmp.setup({
|
||||
mapping = {
|
||||
["<Tab>"] = cmp.mapping(
|
||||
function (fallback)
|
||||
if cmp.visible() then cmp.select_next_item()
|
||||
elseif has_words_before() then cmp.complete()
|
||||
else fallback() end
|
||||
end, {"i"}),
|
||||
|
||||
["<S-Tab>"] = cmp.mapping( cmp.mapping.select_prev_item(), {"i"}),
|
||||
["<Space>"] = cmp.mapping( cmp.mapping.confirm({select=true}), {"i"}),
|
||||
},
|
||||
|
||||
completion = { autocomplete = false },
|
||||
snippet = { expand = function(args) require("luasnip").lsp_expand(args.body) end },
|
||||
|
||||
sources = cmp.config.sources(
|
||||
{{name = "nvim_lsp_signature_help"}},
|
||||
{{name = "nvim_lsp"}},
|
||||
{{name = "buffer"}},
|
||||
{{name = "path"}}
|
||||
)
|
||||
})
|
||||
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
||||
require("lspconfig").clangd.setup{capabilities=capabilities}
|
||||
require("mason-lspconfig").setup_handlers {
|
||||
function (server_name)
|
||||
require("lspconfig")[server_name].setup {capabilities=capabilities}
|
||||
end
|
||||
}
|
||||
|
||||
vim.opt.background = "dark"
|
||||
|
@ -44,11 +101,16 @@ vim.opt.wrap = false
|
|||
|
||||
vim.keymap.set('', '<F7>', 'mzgg=G`z')
|
||||
vim.keymap.set('', 'r', '"_d')
|
||||
vim.g.mapleader = " "
|
||||
|
||||
vim.keymap.set('n', '<leader>f', function() vim.lsp.buf.code_action() end)
|
||||
vim.keymap.set('n', '<leader>h', function() vim.lsp.buf.hover() end)
|
||||
vim.keymap.set('n', '<leader>r', function() vim.lsp.buf.rename() end)
|
||||
|
||||
vim.cmd [[
|
||||
PaqSync
|
||||
colorscheme dracula
|
||||
command Q q!
|
||||
PaqSync
|
||||
|
||||
let b:ale_linters = {'c': [''], 'sh': [''], 'php': ['']}
|
||||
autocmd BufReadPost,FileReadPost *.bz3 call gzip#read("bzip3 -d")
|
||||
]]
|
||||
|
|
|
@ -15,7 +15,7 @@ c.url.searchengines['s'] = 'farside.link/searxng/search?q={}'
|
|||
c.url.searchengines['x'] = 'aldeid.com/wiki/X86-assembly/Instructions/{}'
|
||||
c.url.searchengines['y'] = 'farside.link/invidious/search?q={}'
|
||||
c.url.searchengines['z'] = 'zeldawiki.wiki/wiki/{}'
|
||||
c.url.searchengines['DEFAULT'] = c.url.searchengines['s']
|
||||
c.url.searchengines['DEFAULT'] = c.url.searchengines['4']
|
||||
c.url.start_pages = c.url.default_page = 'minifocs.fly.dev'
|
||||
|
||||
config.source('adblock.py')
|
||||
|
|
Loading…
Reference in New Issue