1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-04-17 23:37:47 +02:00

Compare commits

...

3 Commits

5 changed files with 35 additions and 4 deletions

View File

@ -48,6 +48,7 @@ return require("packer").startup(function(use)
requires = {'hrsh7th/cmp-buffer',
'hrsh7th/cmp-path',
'hrsh7th/cmp-nvim-lsp',
'antoinemadec/fixcursorhold.nvim',
'l3mon4d3/luasnip',
'saadparwaiz1/cmp_luasnip',
'neovim/nvim-lspconfig',
@ -56,7 +57,7 @@ return require("packer").startup(function(use)
'williamboman/mason-lspconfig.nvim',
'jose-elias-alvarez/null-ls.nvim',
'nvim-lua/plenary.nvim',
'jayp0521/mason-null-ls.nvim'}}
'jay-babu/mason-null-ls.nvim'}}
-- showing color of hex values, etc
use {'norcalli/nvim-colorizer.lua'}

View File

@ -111,6 +111,35 @@ cmp.setup {
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
local nvim_lsp = require('lspconfig')

View File

@ -3,5 +3,5 @@
date +" %d %b %H:%M"
case $BLOCK_BUTTON in
1) notify-send "This Month" "$(cal --color=always | sed "s/..7m/<b><span color=\"red\">/;s/..27m/<\/span><\/b>/")" ;;
1) notify-send "This Month" "$(cal --color=always | sed "s/..7m/<b><span color=\"red\">/;s/..0m/<\/span><\/b>/")" ;;
esac

View File

@ -8,4 +8,4 @@ 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}')"

View File

@ -1,10 +1,11 @@
#!/usr/bin/env sh
#
[ "$(cat /sys/class/net/w*/operstate)" = 'down' ] && wifiicon=""
[ ! -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
1) $TERMINAL -e "nmtui" ;;