This commit is contained in:
commit
01e05aac52
|
@ -135,7 +135,7 @@ font:
|
||||||
#style: Bold Italic
|
#style: Bold Italic
|
||||||
|
|
||||||
# Point size
|
# Point size
|
||||||
size: 9.0
|
size: 10.0
|
||||||
|
|
||||||
# Offset is the extra space around each character. `offset.y` can be thought of
|
# Offset is the extra space around each character. `offset.y` can be thought of
|
||||||
# as modifying the line spacing, and `offset.x` as modifying the letter spacing.
|
# as modifying the line spacing, and `offset.x` as modifying the letter spacing.
|
||||||
|
|
|
@ -25,7 +25,7 @@ local on_attach = function(client, bufnr)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Enable some language servers with the additional completion capabilities offered by nvim-cmp
|
-- Enable some language servers with the additional completion capabilities offered by nvim-cmp
|
||||||
local servers = { 'clangd', 'pyright', 'tsserver', 'svelte', 'bashls', 'gopls', 'zls' }
|
local servers = { 'clangd', 'pyright', 'tsserver', 'svelte', 'bashls', 'gopls', 'zls', 'terraformls' }
|
||||||
for _, lsp in ipairs(servers) do
|
for _, lsp in ipairs(servers) do
|
||||||
lspconfig[lsp].setup {
|
lspconfig[lsp].setup {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
|
@ -49,6 +49,7 @@ lspconfig['rust_analyzer'].setup({
|
||||||
["rust-analyzer"] = {
|
["rust-analyzer"] = {
|
||||||
cargo = {
|
cargo = {
|
||||||
allFeatures = true,
|
allFeatures = true,
|
||||||
|
runBuildScripts = true,
|
||||||
},
|
},
|
||||||
procMacro = {
|
procMacro = {
|
||||||
enable = true
|
enable = true
|
||||||
|
@ -63,6 +64,8 @@ lspconfig['texlab'].setup({
|
||||||
filetypes = { "tex", "bib", "md" }
|
filetypes = { "tex", "bib", "md" }
|
||||||
})
|
})
|
||||||
|
|
||||||
|
vim.cmd([[autocmd BufWritePre *.tf lua vim.lsp.buf.formatting_sync()]])
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
require'lspconfig'.java_language_server.setup{
|
require'lspconfig'.java_language_server.setup{
|
||||||
cmd = {'java-language-server'}
|
cmd = {'java-language-server'}
|
||||||
|
@ -70,7 +73,7 @@ require'lspconfig'.java_language_server.setup{
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
-- Exrta features
|
-- Exrta features
|
||||||
vim.cmd([[autocmd BufEnter,BufWinEnter,TabEnter *.rs :lua require'lsp_extensions'.inlay_hints{}]])
|
--vim.cmd([[autocmd BufEnter,BufWinEnter,TabEnter *.rs :lua require'lsp_extensions'.inlay_hints{}]])
|
||||||
require('lspkind').init{}
|
require('lspkind').init{}
|
||||||
require "lsp_signature".setup()
|
require "lsp_signature".setup()
|
||||||
|
|
||||||
|
@ -125,7 +128,6 @@ cmp.setup {
|
||||||
|
|
||||||
-- Diagnostics
|
-- Diagnostics
|
||||||
|
|
||||||
--[[
|
|
||||||
vim.cmd[[
|
vim.cmd[[
|
||||||
" Errors in Red
|
" Errors in Red
|
||||||
hi LspDiagnosticsVirtualTextError guifg=red ctermfg=red
|
hi LspDiagnosticsVirtualTextError guifg=red ctermfg=red
|
||||||
|
@ -141,8 +143,6 @@ hi LspDiagnosticsUnderlineWarning guifg=NONE ctermfg=NONE cterm=underline gui=un
|
||||||
hi LspDiagnosticsUnderlineInformation guifg=NONE ctermfg=NONE cterm=underline gui=underline
|
hi LspDiagnosticsUnderlineInformation guifg=NONE ctermfg=NONE cterm=underline gui=underline
|
||||||
hi LspDiagnosticsUnderlineHint guifg=NONE ctermfg=NONE cterm=underline gui=underline
|
hi LspDiagnosticsUnderlineHint guifg=NONE ctermfg=NONE cterm=underline gui=underline
|
||||||
]]
|
]]
|
||||||
--]]
|
|
||||||
|
|
||||||
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
|
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
|
||||||
vim.lsp.diagnostic.on_publish_diagnostics, {
|
vim.lsp.diagnostic.on_publish_diagnostics, {
|
||||||
-- Enable underline, use default values
|
-- Enable underline, use default values
|
||||||
|
|
|
@ -15,13 +15,13 @@ return require('packer').startup(function()
|
||||||
|
|
||||||
-- Completion
|
-- Completion
|
||||||
use 'neovim/nvim-lspconfig'
|
use 'neovim/nvim-lspconfig'
|
||||||
use 'nvim-lua/lsp-status.nvim'
|
--use 'nvim-lua/lsp-status.nvim'
|
||||||
use 'hrsh7th/nvim-cmp'
|
use 'hrsh7th/nvim-cmp'
|
||||||
use 'hrsh7th/cmp-buffer'
|
use 'hrsh7th/cmp-buffer'
|
||||||
use 'hrsh7th/cmp-nvim-lsp'
|
use 'hrsh7th/cmp-nvim-lsp'
|
||||||
use 'saadparwaiz1/cmp_luasnip'
|
use 'saadparwaiz1/cmp_luasnip'
|
||||||
use 'L3MON4D3/LuaSnip'
|
use 'L3MON4D3/LuaSnip'
|
||||||
use 'nvim-lua/lsp_extensions.nvim'
|
--use 'nvim-lua/lsp_extensions.nvim'
|
||||||
use 'kosayoda/nvim-lightbulb'
|
use 'kosayoda/nvim-lightbulb'
|
||||||
use {
|
use {
|
||||||
"folke/trouble.nvim",
|
"folke/trouble.nvim",
|
||||||
|
@ -44,16 +44,18 @@ return require('packer').startup(function()
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Make
|
-- Make
|
||||||
use 'neomake/neomake'
|
--use 'neomake/neomake'
|
||||||
use 'tpope/vim-dispatch'
|
use 'tpope/vim-dispatch'
|
||||||
|
|
||||||
-- Scrolling
|
-- Scrolling
|
||||||
|
--[[
|
||||||
use {
|
use {
|
||||||
'karb94/neoscroll.nvim',
|
'karb94/neoscroll.nvim',
|
||||||
config = function()
|
config = function()
|
||||||
require('neoscroll').setup()
|
require('neoscroll').setup()
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
--]]
|
||||||
|
|
||||||
-- Syntax highlighting
|
-- Syntax highlighting
|
||||||
use { 'nvim-treesitter/nvim-treesitter', run = ':TSUpdate' }
|
use { 'nvim-treesitter/nvim-treesitter', run = ':TSUpdate' }
|
||||||
|
@ -92,8 +94,12 @@ return require('packer').startup(function()
|
||||||
use 'navarasu/onedark.nvim'
|
use 'navarasu/onedark.nvim'
|
||||||
use 'Th3Whit3Wolf/one-nvim'
|
use 'Th3Whit3Wolf/one-nvim'
|
||||||
|
|
||||||
-- Status lioe
|
-- Status line
|
||||||
use 'glepnir/galaxyline.nvim'
|
use {
|
||||||
|
'nvim-lualine/lualine.nvim',
|
||||||
|
requires = { 'kyazdani42/nvim-web-devicons', opt = true }
|
||||||
|
}
|
||||||
|
--use 'glepnir/galaxyline.nvim'
|
||||||
|
|
||||||
-- Icons
|
-- Icons
|
||||||
use 'ryanoasis/vim-devicons'
|
use 'ryanoasis/vim-devicons'
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
require('lualine').setup()
|
||||||
|
|
||||||
|
--[[
|
||||||
local gl = require('galaxyline')
|
local gl = require('galaxyline')
|
||||||
local colors = require('galaxyline.theme').default
|
local colors = require('galaxyline.theme').default
|
||||||
local condition = require('galaxyline.condition')
|
local condition = require('galaxyline.condition')
|
||||||
|
@ -208,3 +211,4 @@ gls.short_line_right[1] = {
|
||||||
highlight = {colors.fg,colors.bg}
|
highlight = {colors.fg,colors.bg}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
--]]
|
||||||
|
|
|
@ -59,7 +59,7 @@ exec_always --no-startup-id indicator-kdeconnect
|
||||||
#exec_always --no-startup-id ~/.config/i3/auto-xrandr
|
#exec_always --no-startup-id ~/.config/i3/auto-xrandr
|
||||||
#
|
#
|
||||||
#exec_always --no-startup-id ~/.config/picom/launch.sh
|
#exec_always --no-startup-id ~/.config/picom/launch.sh
|
||||||
#exec_always --no-startup-id waybar
|
exec_always --no-startup-id waybar
|
||||||
#exec_always --no-startup-id /home/daan/.screenlayout/HDMI.sh
|
#exec_always --no-startup-id /home/daan/.screenlayout/HDMI.sh
|
||||||
exec_always --no-startup-id ~/Scripts/setbg_wl.sh &
|
exec_always --no-startup-id ~/Scripts/setbg_wl.sh &
|
||||||
#exec_always --no-startup-id hsetroot -solid "#ffffff"
|
#exec_always --no-startup-id hsetroot -solid "#ffffff"
|
||||||
|
@ -67,7 +67,7 @@ exec_always --no-startup-id mako &
|
||||||
#exec_always --no-startup-id ~/.config/i3/oneko.sh
|
#exec_always --no-startup-id ~/.config/i3/oneko.sh
|
||||||
exec_always --no-startup-id ~/.config/sway/lisgd_gestures.sh
|
exec_always --no-startup-id ~/.config/sway/lisgd_gestures.sh
|
||||||
|
|
||||||
exec_always --no-startup-id easyeffects --gapplication-service &
|
#exec_always --no-startup-id easyeffects --gapplication-service &
|
||||||
|
|
||||||
#bindsym $mod+w exec --no-startup-id guake-toggle &
|
#bindsym $mod+w exec --no-startup-id guake-toggle &
|
||||||
|
|
||||||
|
@ -187,14 +187,14 @@ bindsym $mod+Shift+r swaymsg restart
|
||||||
# exit i3 (logs you out of your X session)
|
# exit i3 (logs you out of your X session)
|
||||||
#bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
|
#bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
|
||||||
|
|
||||||
bar {
|
#bar {
|
||||||
status_command exec i3status
|
# status_command exec i3status
|
||||||
position top
|
# position top
|
||||||
colors {
|
# colors {
|
||||||
background #00000000
|
# background #00000000
|
||||||
statusline #ffffff
|
# statusline #ffffff
|
||||||
}
|
# }
|
||||||
}
|
#}
|
||||||
|
|
||||||
# resize window (you can also use the mouse for that)
|
# resize window (you can also use the mouse for that)
|
||||||
mode "resize" {
|
mode "resize" {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
export QT_QPA_PLATFORMTHEME="qt5ct"
|
export QT_QPA_PLATFORMTHEME="qt5ct"
|
||||||
export VK_ICD_FILENAMES="/usr/share/vulkan/icd.d/radeon_icd.x86_64.json:/usr/share/vulkan/icd.d/radeon_icd.i686.json"
|
#export VK_ICD_FILENAMES="/usr/share/vulkan/icd.d/radeon_icd.x86_64.json:/usr/share/vulkan/icd.d/radeon_icd.i686.json"
|
||||||
export _JAVA_AWT_WM_NONREPARENTING=1
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
||||||
export XKB_DEFAULT_OPTIONS=caps:escape
|
export XKB_DEFAULT_OPTIONS=caps:escape
|
||||||
export MOZ_USE_XINPUT2=1
|
export MOZ_USE_XINPUT2=1
|
||||||
|
|
1
.zshrc
1
.zshrc
|
@ -216,3 +216,4 @@ alias config='/usr/bin/git --git-dir=/home/daan/.cfg/ --work-tree=/home/daan'
|
||||||
|
|
||||||
alias chadgit="GIT_SSH_COMMAND='ssh -i ~/.ssh/id_rsa_tor -o IdentitiesOnly=yes' git"
|
alias chadgit="GIT_SSH_COMMAND='ssh -i ~/.ssh/id_rsa_tor -o IdentitiesOnly=yes' git"
|
||||||
|
|
||||||
|
alias hass="podman run homeassistant/home-assistant-cli"
|
||||||
|
|
Loading…
Reference in New Issue