Update configuration

main
Nils Gerstner 1 year ago
parent 86d3c58d2a
commit 1ae17b0fec

Binary file not shown.

@ -72,14 +72,9 @@ require("null-ls").setup({ sources = {} })
-- The nvim-cmp almost supports LSP's capabilities so You should advertise it to LSP servers..
local capabilities = require("cmp_nvim_lsp").default_capabilities()
-- require 'lspconfig'.flux_lsp.setup {
-- cmd = { "/home/nige/.cargo/bin/flux-lsp", "-l", "/tmp/fluxlsp" },
-- capabilities = capabilities,
-- }
-- Version 0.8.30
require 'lspconfig'.flux_lsp.setup {
cmd = {
-- "/home/nige/.cargo/bin/flux-lsp", "-l", "/tmp/fluxlsp"
"/home/nige/dotfiles/.config/nvim/bin/flux-lsp", "-l", "/tmp/fluxlsp"
},
capabilities = capabilities
@ -98,6 +93,7 @@ require("mason-lspconfig").setup_handlers({
["flux_lsp"] = function()
require 'lspconfig'.flux_lsp.setup {
cmd = {
-- "/home/nige/.cargo/bin/flux-lsp", "-l",
"/home/nige/dotfiles/.config/nvim/bin/flux-lsp", "-l",
"/tmp/fluxlsp"
},
@ -109,10 +105,6 @@ require("mason-lspconfig").setup_handlers({
vim.diagnostic.config({
virtual_text = false,
-- float = { show_header = true, souce = "always", border = "rounded", wrap = true, },
float = {
show_header = true,
source = true,
border = "solid",
},
float = { show_header = true, source = true, border = "solid" },
severity_sort = true -- default to false
})

@ -30,6 +30,11 @@ local plugins = {
-- Moved to set.lua
-- vim.cmd("colorscheme kanagawa")
end
}, {
"kdheepak/lazygit.nvim",
-- optional for floating window border decoration
requires = { "nvim-lua/plenary.nvim" }
}, {
"toppair/peek.nvim",
build = "deno task --quiet build:fast",
@ -298,6 +303,7 @@ local plugins = {
-- end,
-- },
{ "weilbith/nvim-code-action-menu", cmd = "CodeActionMenu" },
{ 'm-demare/hlargs.nvim', config = function() require('hlargs').setup() end },
{
"kosayoda/nvim-lightbulb",
dependencies = "antoinemadec/FixCursorHold.nvim"
@ -316,66 +322,19 @@ local plugins = {
end
}, { "nvim-neorg/tree-sitter-norg" }, { "nvim-neorg/neorg-telescope" }, {
"nvim-neorg/neorg",
run = ":Neorg sync-parsers", -- This is the important bit!
config = function()
require("neorg").setup({
-- require('neorg').setup()
require('neorg').setup {
load = {
["core.defaults"] = {} -- Load all the default modules
-- ["core.norg.concealer"] = {
-- -- config = {
-- -- folds = false,
-- -- },
-- },
-- ["core.norg.dirman"] = { -- Manage your directories with Neorg
-- config = {
-- workspaces = {
-- work = "/Users/nige/notes/work",
-- home = "/Users/nige/notes/home",
-- gtd =
-- "/Users/nige/Documents/PARA/PROJECTS/example_workspaces/gtd",
-- -- gtd = "/Users/nige/gtd"
-- },
-- },
-- },
-- -- ["core.gtd.base"] = {
-- -- config = {
-- -- workspace = "gtd",
-- -- -- workspace = "notes",
-- -- },
-- -- },
-- ["core.norg.completion"] = {
-- config = {
-- engine = "nvim-cmp", -- We current support nvim-compe and nvim-cmp only
-- },
-- },
-- ["core.norg.qol.todo_items"] = {},
-- -- ["core.norg.qol.toc"] = {
-- -- config = { -- Note that this table is optional and doesn't need to be provided
-- -- -- Configuration here
-- -- default_toc_mode = "toqflist"
-- -- }
-- -- },
-- -- ["core.norg.journal"] = {
-- -- config = { -- Note that this table is optional and doesn't need to be provided
-- -- -- workspace = "notes",
-- -- }
-- -- },
-- -- ["core.presenter"] = {
-- -- config = { -- Note that this table is optional and doesn't need to be provided
-- -- -- Configuration here
-- -- -- zen_mode = "truezen",
-- -- zen_mode = "zen-mode"
-- -- }
-- -- },
-- ["core.export"] = {
-- config = { -- Note that this table is optional and doesn't need to be provided
-- -- Configuration here
-- },
-- },
-- ["core.integrations.telescope"] = {}, -- Enable the telescope module
["core.defaults"] = {},
["core.integrations.treesitter"] = {},
-- ["core.export"] = {config = { export_dir = "/home/nige/Documents/Export/markdown-export"} },
-- ["core.export.markdown"] = {},
["core.completion"] = { config = { engine = "nvim-cmp" } }
}
})
}
end
-- dependencies = "nvim-neorg/neorg-telescope", -- Be sure to pull in the repo
}
}

@ -38,3 +38,12 @@ vim.g.tick_fmt_autosave = 0
vim.cmd("colorscheme kanagawa")
-- vim.cmd("colorscheme rose-pine")
local is_wsl = (function()
local output = vim.fn.systemlist "uname -r"
return not not string.find(output[1] or "", "WSL")
end)()
if is_wsl then
vim.g.netrw_browsex_viewer = "wslview"
end

@ -0,0 +1,8 @@
#!/bin/bash
sudo docker run \
-p 8888:8888 \
-e "INFLUXDB_URL=https://westeurope-1.azure.cloud2.influxdata.com" \
-e "INFLUXDB_ORG=0df6a2a05711109d" \
-e "INFLUXDB_TOKEN=2fDKVDMMZBWRHGRMvu6vhdBDZ9H8eSRJS4Wn7ZKR6Y7hchze5TwNp-ITzVCRA5Yx4rb9Ww1InX2HeX1JRbCPWg==" \
-d \
chronograf

@ -53,13 +53,11 @@ _get_subfolder() {
_select_uniq() {
local root="$1"
cat < /dev/stdin | awk '!x[$0]++' - | fzf --preview "tree -L 1 ${root}{}"
}
root_dir="$(_get_root | _select_uniq)"
base_name="$(_get_subfolder | _select_uniq "${root_dir}/")"
echo "${root_dir}/${base_name}"
echo "${root_dir} ${base_name}" >> "$SELECTED_FOLDERS_LOG"
echo "${root_dir} ${base_name}" | tee -a "$SELECTED_FOLDERS_LOG"
tail -n $LINES_TO_SAVE "$SELECTED_FOLDERS_LOG"| sponge "$SELECTED_FOLDERS_LOG"

@ -7,7 +7,32 @@
# The following variables should be put inside a file, and sourced:
source ~/.lib/variables.sh
blue="\e[38;5;25m"
lightblue="\e[38;5;81m"
green="\033[0;32m"
red="\e[38;5;09m"
yellow="\e[38;5;11m"
grey="\e[38;5;247m"
orange="\e[38;5;208m"
nc="\033[0m"
bold="\033[1m"
sshserver+=("exampleuser@example.com")
sshcomment+=("Example server")
sshcolor+=("$red")
sshserver+=("exampleuser@example2.com")
sshcomment+=("Second examople server")
sshcolor+=("$orange")
sshserver+=("exampleuser@example3.com")
sshcomment+=("Third example server")
sshcolor+=("$yellow")
sshserver+=("exampleuser@example4.com")
sshcomment+=("Fourth example server")
sshcolor+=("$green")
pad=" ................................................."
#pad=" -------------------------------------------------"

Loading…
Cancel
Save