Add my user to nix.allowed-users, config changes

This commit is contained in:
2024-12-09 18:40:25 +01:00
parent 976261b96d
commit f2edd4b571
5 changed files with 21 additions and 76 deletions
+13 -39
View File
@@ -1,61 +1,35 @@
# The syntax is "key = value". The whitespace around the equals doesn't matter.
background= 000000
foreground= ffffff
# Blank lines are ignored!
keybind = ctrl+shift+w=close_surface
keybind = ctrl+t=new_tab
keybind = ctrl+tab=next_tab
keybind = ctrl+shift+tab=previous_tab
keybind = ctrl+shift+n=new_window
keybind = ctrl+shift+o=ignore
# window stuff
background-opacity=0.8
# Window Stuff
background-opacity=0.9
confirm-close-surface = false
window-theme = dark
window-decoration = false
# linux specific
# Linux Specific
gtk-wide-tabs = true
# macos specific
# MacOS Specific
#macos-non-native-fullscreen = true
# font
# Font
font-size = 14
# cursor and mouse
# Cursor And Mouse
cursor-style = block
cursor-color = #ffffff
mouse-hide-while-typing = true
theme = Bright Lights
# Colors can be changed by setting the 16 colors of `palette`, which each color
# being defined as regular and bold.
#
# black
# palette = 0=#0c0c0c
# palette = 8=#767676
# # red
# palette = 1=#c50f1f
# palette = 9=#e74856
# # green
# palette = 2=#13a10e
# palette = 10=#16c60c
# # yellow
# palette = 3=#c19c00
# palette = 11=#f9f1a5
# # blue
# palette = 4=#0037da
# palette = 12=#3b78ff
# # purple
# palette = 5=#881798
# palette = 13=#b4009e
# # aqua
# palette = 6=#3a96dd
# palette = 14=#61d6d6
# # white
# palette = 7=#cccccc
# palette = 15=#f2f2f2
# Theme
# theme = Grape
# theme = Bright Lights
theme = tokyonight
# theme = Purple Rain
# theme = Mariana
@@ -30,6 +30,7 @@ lsp_zero.extend_lspconfig({
local lspconfig = require('lspconfig')
require('mason').setup({})
require('mason-lspconfig').setup({
ensure_installed = {
'lua_ls',
@@ -61,37 +62,7 @@ require('mason-lspconfig').setup({
})
end,
jdtls = function()
lspconfig.jdtls.setup({
cmd = {
"java",
"-Declipse.application=org.eclipse.jdt.ls.core.id1",
"-Dosgi.bundles.defaultStartLevel=4",
"-Declipse.product=org.eclipse.jdt.ls.core.product",
"-Dlog.protocol=true",
"-Dlog.level=ALL",
"-Xms1g",
"--add-modules=ALL-SYSTEM",
"--add-opens",
"java.base/java.util=ALL-UNNAMED",
"--add-opens",
"java.base/java.lang=ALL-UNNAMED",
--
},
single_file_support = true,
settings = {
java = {
signatureHelp = {enabled = true},
import = {enabled = true},
rename = {enabled = true}
}
},
flags = {
debounce_text_changes = 150,
},
init_options = {
bundles = {},
},
})
lspconfig.jdtls.setup{}
end,
zls = function()
lspconfig.zls.setup({})
@@ -105,12 +76,12 @@ require('mason-lspconfig').setup({
return
end
end
client.config.settings.Lua = vim.tbl_deep_extend('force', client.config.settings.Lua, {
runtime = {
-- Tell the language server which version of Lua you're using
-- (most likely LuaJIT in the case of Neovim)
version = 'LuaJIT'
},
-- Make the server aware of Neovim runtime files
@@ -21,6 +21,8 @@ return require('packer').startup(function(use)
'nvim-neotest/nvim-nio' -- dep of dap-ui
}
}
use 'mfussenegger/nvim-jdtls' -- Java LSP Support
use 'tpope/vim-fugitive' -- git integration
--LSP CONFIG
--