mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-04-19 16:27:45 +02:00
Compare commits
No commits in common. "fd29c9e82a5e0a74d206ef2db3559b83a1192474" and "f481203dface0aa703ae770bff3d73609822801a" have entirely different histories.
fd29c9e82a
...
f481203dfa
@ -48,7 +48,6 @@ return require("packer").startup(function(use)
|
|||||||
requires = {'hrsh7th/cmp-buffer',
|
requires = {'hrsh7th/cmp-buffer',
|
||||||
'hrsh7th/cmp-path',
|
'hrsh7th/cmp-path',
|
||||||
'hrsh7th/cmp-nvim-lsp',
|
'hrsh7th/cmp-nvim-lsp',
|
||||||
'antoinemadec/fixcursorhold.nvim',
|
|
||||||
'l3mon4d3/luasnip',
|
'l3mon4d3/luasnip',
|
||||||
'saadparwaiz1/cmp_luasnip',
|
'saadparwaiz1/cmp_luasnip',
|
||||||
'neovim/nvim-lspconfig',
|
'neovim/nvim-lspconfig',
|
||||||
@ -57,7 +56,7 @@ return require("packer").startup(function(use)
|
|||||||
'williamboman/mason-lspconfig.nvim',
|
'williamboman/mason-lspconfig.nvim',
|
||||||
'jose-elias-alvarez/null-ls.nvim',
|
'jose-elias-alvarez/null-ls.nvim',
|
||||||
'nvim-lua/plenary.nvim',
|
'nvim-lua/plenary.nvim',
|
||||||
'jay-babu/mason-null-ls.nvim'}}
|
'jayp0521/mason-null-ls.nvim'}}
|
||||||
|
|
||||||
-- showing color of hex values, etc
|
-- showing color of hex values, etc
|
||||||
use {'norcalli/nvim-colorizer.lua'}
|
use {'norcalli/nvim-colorizer.lua'}
|
||||||
|
@ -111,35 +111,6 @@ cmp.setup {
|
|||||||
require("luasnip.loaders.from_snipmate").lazy_load()
|
require("luasnip.loaders.from_snipmate").lazy_load()
|
||||||
|
|
||||||
|
|
||||||
-- local on_attach = function(client, bufnr)
|
|
||||||
-- if client.server_capabilities.documentHighlightProvider then
|
|
||||||
-- vim.cmd [[
|
|
||||||
-- hi! LspReferenceRead cterm=bold ctermbg=red guibg=LightYellow
|
|
||||||
-- hi! LspReferenceText cterm=bold ctermbg=red guibg=LightYellow
|
|
||||||
-- hi! LspReferenceWrite cterm=bold ctermbg=red guibg=LightYellow
|
|
||||||
-- ]]
|
|
||||||
-- vim.api.nvim_create_augroup('lsp_document_highlight', {
|
|
||||||
-- clear = false
|
|
||||||
-- })
|
|
||||||
-- vim.api.nvim_clear_autocmds({
|
|
||||||
-- buffer = bufnr,
|
|
||||||
-- group = 'lsp_document_highlight',
|
|
||||||
-- })
|
|
||||||
-- vim.api.nvim_create_autocmd({ 'CursorHold', 'CursorHoldI' }, {
|
|
||||||
-- group = 'lsp_document_highlight',
|
|
||||||
-- buffer = bufnr,
|
|
||||||
-- callback = vim.lsp.buf.document_highlight,
|
|
||||||
-- })
|
|
||||||
-- vim.api.nvim_create_autocmd('CursorMoved', {
|
|
||||||
-- group = 'lsp_document_highlight',
|
|
||||||
-- buffer = bufnr,
|
|
||||||
-- callback = vim.lsp.buf.clear_references,
|
|
||||||
-- })
|
|
||||||
-- end
|
|
||||||
-- end
|
|
||||||
--
|
|
||||||
-- vim.g.cursorhold_updatetime = 100
|
|
||||||
|
|
||||||
-- neovim/nvim-lspconfig
|
-- neovim/nvim-lspconfig
|
||||||
local nvim_lsp = require('lspconfig')
|
local nvim_lsp = require('lspconfig')
|
||||||
|
|
||||||
|
@ -3,5 +3,5 @@
|
|||||||
date +" %d %b %H:%M"
|
date +" %d %b %H:%M"
|
||||||
|
|
||||||
case $BLOCK_BUTTON in
|
case $BLOCK_BUTTON in
|
||||||
1) notify-send "This Month" "$(cal --color=always | sed "s/..7m/<b><span color=\"red\">/;s/..0m/<\/span><\/b>/")" ;;
|
1) notify-send "This Month" "$(cal --color=always | sed "s/..7m/<b><span color=\"red\">/;s/..27m/<\/span><\/b>/")" ;;
|
||||||
esac
|
esac
|
||||||
|
@ -8,4 +8,4 @@ disk="/"
|
|||||||
|
|
||||||
icon="$disk"
|
icon="$disk"
|
||||||
|
|
||||||
printf " %s %s\n" "$icon" "$(df -h "$disk" | awk ' /[0-9]/ {print $3 "/" $2}')"
|
printf " %s %s\n" "$icon" "$(df -h "$disk" | awk ' /[0-9]/ {print $3 "/" $2}')"
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
#
|
|
||||||
|
|
||||||
[ "$(cat /sys/class/net/w*/operstate)" = 'down' ] && wifiicon=""
|
[ "$(cat /sys/class/net/w*/operstate)" = 'down' ] && wifiicon=""
|
||||||
|
|
||||||
[ ! -n "${wifiicon+var}" ] && wifiicon=$(grep "^\s*w" /proc/net/wireless | awk '{ print "", int($3 * 100 / 70) "%" }')
|
[ ! -n "${wifiicon+var}" ] && wifiicon=$(grep "^\s*w" /proc/net/wireless | awk '{ print "", int($3 * 100 / 70) "%" }')
|
||||||
|
|
||||||
printf "%s %s\n" "$(cat /sys/class/net/e*/operstate | sed "s/down//;s/up//")" "$wifiicon"
|
printf "%s %s\n" "$(cat /sys/class/net/e*/operstate | sed "s/down//;s/up//")" "$wifiicon"
|
||||||
|
|
||||||
case $BLOCK_BUTTON in
|
case $BLOCK_BUTTON in
|
||||||
1) $TERMINAL -e "nmtui" ;;
|
1) $TERMINAL -e "nmtui" ;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user