main
Micke Nordin 2 years ago
parent 41e8b938f5
commit 2bde8b6aed
Signed by: micke
GPG Key ID: 014B273D614BE877

@ -33,15 +33,15 @@ nnoremap <leader>fg <cmd>Telescope live_grep<cr>
nnoremap <leader>fb <cmd>Telescope buffers<cr> nnoremap <leader>fb <cmd>Telescope buffers<cr>
nnoremap <leader>fh <cmd>Telescope help_tags<cr> nnoremap <leader>fh <cmd>Telescope help_tags<cr>
" NERDTree settings "" NERDTree settings
" Start NERDTree and put the cursor back in the other window. "" Start NERDTree and put the cursor back in the other window.
autocmd VimEnter * NERDTree | wincmd p "autocmd VimEnter * NERDTree | wincmd p
" If another buffer tries to replace NERDTree, put it in the other window, and bring back NERDTree. "" If another buffer tries to replace NERDTree, put it in the other window, and bring back NERDTree.
autocmd BufEnter * if bufname('#') =~ 'NERD_tree_\d\+' && bufname('%') !~ 'NERD_tree_\d\+' && winnr('$') > 1 | "autocmd BufEnter * if bufname('#') =~ 'NERD_tree_\d\+' && bufname('%') !~ 'NERD_tree_\d\+' && winnr('$') > 1 |
\ let buf=bufnr() | buffer# | execute "normal! \<C-W>w" | execute 'buffer'.buf | endif " \ let buf=bufnr() | buffer# | execute "normal! \<C-W>w" | execute 'buffer'.buf | endif
" Exit Vim if NERDTree is the only window remaining in the only tab. "" Exit Vim if NERDTree is the only window remaining in the only tab.
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif "autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
"
" lsp diagnostics " lsp diagnostics
lua <<EOF lua <<EOF
require'toggle_lsp_diagnostics'.init({ start_on = true }) require'toggle_lsp_diagnostics'.init({ start_on = true })
@ -183,7 +183,7 @@ local capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protoco
-- Use a loop to conveniently call 'setup' on multiple servers and -- Use a loop to conveniently call 'setup' on multiple servers and
-- map buffer local keybindings when the language server attaches -- map buffer local keybindings when the language server attaches
local servers = { 'pyright', 'bashls'} local servers = { 'pyright', 'bashls', 'clangd'}
for _, lsp in ipairs(servers) do for _, lsp in ipairs(servers) do
nvim_lsp[lsp].setup { nvim_lsp[lsp].setup {
capabilities = capabilities, capabilities = capabilities,
@ -195,5 +195,17 @@ for _, lsp in ipairs(servers) do
end end
-- set up formatting
require "lspconfig".efm.setup {
init_options = {documentFormatting = true},
settings = {
rootMarkers = {".git/"},
languages = {
python = {
{formatCommand = "yapf --quiet", formatStdin = true},
{formatCommand = "isort -d -", formatStdin = true}
}
}
}
}
EOF EOF

@ -0,0 +1,26 @@
#!/bin/bash
olddir=$(pwd)
dir=$(mktemp -d)
cd ${dir}
filename="mickeos.cfg"
echo 'Section: misc
Priority: optional
Homepage: smolnet.org
Standards-Version: 3.9.2
Package: mickeos
Version: 10
Maintainer: Micke Nordin <hej@mic.ke>
Depends: i3
Recommends: lxqt
Provides: xfwm4,audacious,audacious-plugins,audacious-plugins-data,lxqt-panel,lxqt-panel-l10n,qterminal,qterminal-l10n,qtermwidget5-data,smplayer,smplayer-l10n,smplayer-themes,smtube
Description: Fake it till you make it
' > ${filename}
equivs-build ${filename}
sudo dpkg -i *.deb
cp *.deb ~/
sudo apt -y install lxqt kitty
cd ${olddir}
rm -r ${dir}
Loading…
Cancel
Save