1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-03-07 10:59:55 +01:00

chore: clean up

This commit is contained in:
TheGeneralist 2025-07-03 09:03:46 +02:00
parent e190c5cbaa
commit cd8c34f8da
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4
18 changed files with 399 additions and 301 deletions

60
flake.lock generated
View file

@ -27,6 +27,27 @@
"type": "github" "type": "github"
} }
}, },
"fenix": {
"inputs": {
"nixpkgs": [
"nixpkgs"
],
"rust-analyzer-src": "rust-analyzer-src"
},
"locked": {
"lastModified": 1751438379,
"narHash": "sha256-0u0rFAkdUIexx8r7+TkGjUsmauK6kKQ/RtE7vCEwLLE=",
"owner": "nix-community",
"repo": "fenix",
"rev": "9d776d59084355be7d187a047f64c36664249c4d",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "fenix",
"type": "github"
}
},
"flake-compat": { "flake-compat": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -172,6 +193,26 @@
"type": "github" "type": "github"
} }
}, },
"nil": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1751341694,
"narHash": "sha256-zXag1+8iZC3H5yVFP7KhIi4ps9z8xKrFIkyaeXlZ7Uo=",
"owner": "oxalica",
"repo": "nil",
"rev": "b043bfe1f3f4c4be4b688e24c5ae96e81f525805",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "nil",
"type": "github"
}
},
"nix": { "nix": {
"inputs": { "inputs": {
"flake-compat": "flake-compat_2", "flake-compat": "flake-compat_2",
@ -314,13 +355,32 @@
"root": { "root": {
"inputs": { "inputs": {
"agenix": "agenix", "agenix": "agenix",
"fenix": "fenix",
"ghostty": "ghostty", "ghostty": "ghostty",
"home-manager": "home-manager", "home-manager": "home-manager",
"nil": "nil",
"nix": "nix", "nix": "nix",
"nix-darwin": "nix-darwin", "nix-darwin": "nix-darwin",
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
} }
}, },
"rust-analyzer-src": {
"flake": false,
"locked": {
"lastModified": 1751377982,
"narHash": "sha256-eqf9Bxe3uBNG4xwcteIKt855wHuT+j6orPiABQ83dDw=",
"owner": "rust-lang",
"repo": "rust-analyzer",
"rev": "aa16885e6282a540ecfbffa0d886ed9904b425bc",
"type": "github"
},
"original": {
"owner": "rust-lang",
"ref": "nightly",
"repo": "rust-analyzer",
"type": "github"
}
},
"systems": { "systems": {
"locked": { "locked": {
"lastModified": 1681028828, "lastModified": 1681028828,

View file

@ -20,6 +20,14 @@
ghostty = { ghostty = {
url = "github:ghostty-org/ghostty"; url = "github:ghostty-org/ghostty";
}; };
fenix = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
nil = {
url = "github:oxalica/nil";
inputs.nixpkgs.follows = "nixpkgs";
};
# wrapper-manager = { # wrapper-manager = {
# url = "github:viperML/wrapper-manager"; # url = "github:viperML/wrapper-manager";
# inputs.nixpkgs.follows = "nixpkgs"; # inputs.nixpkgs.follows = "nixpkgs";
@ -29,7 +37,7 @@
outputs = inputs@{ self, nixpkgs, nix-darwin, nix, ... }: let outputs = inputs@{ self, nixpkgs, nix-darwin, nix, ... }: let
inherit (builtins) readDir; inherit (builtins) readDir;
inherit (nixpkgs.lib) attrsToList const groupBy listToAttrs mapAttrs last mkOption splitString; inherit (nixpkgs.lib) attrsToList const groupBy listToAttrs mapAttrs;
#nix.enable = false; #nix.enable = false;
lib = nixpkgs.lib // nix-darwin.lib; lib = nixpkgs.lib // nix-darwin.lib;

View file

@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page, on # your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`). # https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ self, config, pkgs, lib, inputs, ... }: { pkgs, ... }:
{ {
imports = [ ./hardware-configuration.nix ]; imports = [ ./hardware-configuration.nix ];

View file

@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page, on # your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`). # https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ self, config, pkgs, lib, inputs, ... }: { config, pkgs, inputs, ... }:
{ {
imports = [ ./hardware-configuration.nix ./site.nix ./cache ]; imports = [ ./hardware-configuration.nix ./site.nix ./cache ];

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, modulesPath, ... }: { lib, ... }:
{ {
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { {
system.primaryUser = "thegeneralist"; system.primaryUser = "thegeneralist";
# TODO: explore this. # TODO: explore this.

View file

@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page, on # your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`). # https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ self, config, pkgs, lib, inputs, ... }: { pkgs, ... }:
{ {
imports = [ ./hardware-configuration.nix ./aerospace.nix ]; imports = [ ./hardware-configuration.nix ./aerospace.nix ];

View file

@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page, on # your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`). # https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ self, config, pkgs, lib, inputs, ... }: { config, pkgs, inputs, ... }:
{ {
imports = [ ./hardware-configuration.nix ]; imports = [ ./hardware-configuration.nix ];

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, modulesPath, ... }: { config, lib, modulesPath, ... }:
{ {
imports = imports =

View file

@ -1,4 +1,4 @@
{ lib, options, ... }: let { lib, ... }: let
inherit (lib) mkOption; inherit (lib) mkOption;
in { in {
options.dnsServers = mkOption { options.dnsServers = mkOption {

View file

@ -1,5 +1,5 @@
{ lib, pkgs, config, ... }: let { lib, pkgs, ... }: let
inherit (lib) optionalAttrs getExe; inherit (lib) getExe;
in { in {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
gnupg gnupg

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ...}: let { config, pkgs, ...}: let
subs = [ subs = [
"https://cache.thegeneralist01.com/" "https://cache.thegeneralist01.com/"
"https://cache.garnix.io/" "https://cache.garnix.io/"

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, wrapper-manager, ... }: let { config, pkgs, lib, ... }: let
inherit (lib) readFile getExe mkIf optionalAttrs; inherit (lib) readFile getExe mkIf optionalAttrs;
in { in {
# TODO: starship + change the zoxide src # TODO: starship + change the zoxide src

31
modules/common/rust.nix Normal file
View file

@ -0,0 +1,31 @@
{ pkgs, ... }: {
# TODO: install nil (nix language server)
# TODO: check these out: https://github.com/RGBCube/ncc/blob/86212e148b2642a51814e873a81be73fbc494e86/modules/common/rust.nix#L15-L24
environment.systemPackages = with pkgs; [
(fenix.complete.withComponents [
"cargo"
"clippy"
"rust-src"
"rustc"
"rustfmt"
])
rust-analyzer-nightly
# for nil
nil
nixfmt-rfc-style
];
# home-manager.sharedModules = [{
# extraWrapperArgs = [
# "--suffix"
# "LIBRARY_PATH"
# ":"
# "${lib.makeLibraryPath [ pkgs.stdenv.cc.cc pkgs.zlib ]}"
# "--suffix"
# "PKG_CONFIG_PATH"
# ":"
# "${lib.makeSearchPathOutput "dev" "lib/pkgconfig" [ pkgs.stdenv.cc.cc pkgs.zlib ]}"
# ];
# }];
}

View file

@ -1,4 +1,4 @@
{ config, ... }: { {
services.tailscale = { services.tailscale = {
enable = true; enable = true;
}; };

View file

@ -1,4 +1,4 @@
{ lib, ... }: let let
numbers = [ numbers = [
"1" "2" "3" "4" "5" "6" "7" "8" "9" "0" "1" "2" "3" "4" "5" "6" "7" "8" "9" "0"
]; ];

View file

@ -1,15 +1,13 @@
# TODO: this { lib, ... }: let
# { lib, ... }: let sshOptions = {
# sshOptions = { PermitRootLogin = "no";
# PermitRootLogin = "no"; PasswordAuthentication = "no";
# PasswordAuthentication = "no"; };
# }; in {
# in { services.openssh = {
# services.openssh = { enable = true;
# enable = true; extraConfig = sshOptions
# extraConfig = sshOptions |> lib.mapAttrsToList (name: value: "${name} ${value}")
# |> lib.mapAttrsToList (name: value: "${name} ${value}") |> lib.concatStringsSep "\n";
# |> lib.concatStringsSep "\n"; };
# }; }
# }
{}

View file

@ -1,286 +1,287 @@
return { return {
{ {
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
dependencies = { dependencies = {
"saghen/blink.cmp", "saghen/blink.cmp",
-- "folke/neodev.nvim", -- "folke/neodev.nvim",
"williamboman/mason.nvim", "williamboman/mason.nvim",
"mason-org/mason-registry", "mason-org/mason-registry",
"williamboman/mason-lspconfig.nvim", "williamboman/mason-lspconfig.nvim",
"hrsh7th/cmp-nvim-lsp", "hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer", "hrsh7th/cmp-buffer",
"hrsh7th/cmp-path", "hrsh7th/cmp-path",
"hrsh7th/cmp-cmdline", "hrsh7th/cmp-cmdline",
-- "hrsh7th/nvim-cmp", -- "hrsh7th/nvim-cmp",
"L3MON4D3/LuaSnip", "L3MON4D3/LuaSnip",
"saadparwaiz1/cmp_luasnip", "saadparwaiz1/cmp_luasnip",
"j-hui/fidget.nvim", "j-hui/fidget.nvim",
}, },
config = function() config = function()
local lspkind = require("lspkind") local lspkind = require("lspkind")
-- local cmp = require("cmp") -- local cmp = require("cmp")
-- local cmp_lsp = require("cmp_nvim_lsp") -- local cmp_lsp = require("cmp_nvim_lsp")
-- local capabilities = vim.tbl_deep_extend( -- local capabilities = vim.tbl_deep_extend(
-- "force", -- "force",
-- {}, -- {},
-- vim.lsp.protocol.make_client_capabilities(), -- vim.lsp.protocol.make_client_capabilities(),
-- cmp_lsp.default_capabilities() -- cmp_lsp.default_capabilities()
-- ) -- )
require("fidget").setup({}) require("fidget").setup({})
require("mason").setup() require("mason").setup()
-- local vue_typescript_plugin = require("mason-registry") -- local vue_typescript_plugin = require("mason-registry")
-- .get_package("vue-language-server") -- .get_package("vue-language-server")
-- :get_install_path() .. "/node_modules/@vue/language-server" .. "/node_modules/@vue/typescript-plugin" -- :get_install_path() .. "/node_modules/@vue/language-server" .. "/node_modules/@vue/typescript-plugin"
local capabilities = require("blink.cmp").get_lsp_capabilities() local capabilities = require("blink.cmp").get_lsp_capabilities()
require("mason-lspconfig").setup({ vim.lsp.enable("nil_ls")
automatic_enable = true, require("mason-lspconfig").setup({
ensure_installed = { automatic_enable = true,
"lua_ls", ensure_installed = {
"rust_analyzer", "lua_ls",
"ts_ls", "rust_analyzer",
"cssls", "ts_ls",
"tailwindcss", "cssls",
"pyright", "tailwindcss",
}, "pyright",
handlers = { },
function(server_name) -- default handler (optional) handlers = {
-- if server_name == "rust_analyzer" then function(server_name) -- default handler (optional)
-- return -- if server_name == "rust_analyzer" then
-- end -- return
require("lspconfig")[server_name].setup({ -- end
capabilities = capabilities, require("lspconfig")[server_name].setup({
}) capabilities = capabilities,
end, })
end,
["lua_ls"] = function() ["lua_ls"] = function()
local lspconfig = require("lspconfig") local lspconfig = require("lspconfig")
lspconfig.lua_ls.setup({ lspconfig.lua_ls.setup({
capabilities = capabilities, capabilities = capabilities,
settings = { settings = {
Lua = { Lua = {
diagnostics = { diagnostics = {
globals = { "vim", "it", "describe", "before_each", "after_each" }, globals = { "vim", "it", "describe", "before_each", "after_each" },
}, },
}, },
}, },
}) })
end, end,
["ts_ls"] = function() ["ts_ls"] = function()
local lspconfig = require("lspconfig") local lspconfig = require("lspconfig")
lspconfig.ts_ls.setup({ lspconfig.ts_ls.setup({
capabilities = capabilities, capabilities = capabilities,
-- settings = { -- settings = {
-- }, -- },
-- init_options = { -- init_options = {
-- plugins = { -- plugins = {
-- { -- {
-- name = "@vue/typescript-plugin", -- name = "@vue/typescript-plugin",
-- location = vue_typescript_plugin, -- location = vue_typescript_plugin,
-- languages = { "vue" }, -- languages = { "vue" },
-- }, -- },
-- }, -- },
-- }, -- },
filetypes = { filetypes = {
"javascript", "javascript",
"javascriptreact", "javascriptreact",
"javascript.jsx", "javascript.jsx",
"typescript", "typescript",
"typescriptreact", "typescriptreact",
"typescript.tsx", "typescript.tsx",
-- "vue", -- "vue",
}, },
}) })
end, end,
}, },
}) })
vim.api.nvim_create_autocmd("LspAttach", { vim.api.nvim_create_autocmd("LspAttach", {
callback = function(args) callback = function(args)
local c = vim.lsp.get_client_by_id(args.data.client_id) local c = vim.lsp.get_client_by_id(args.data.client_id)
if not c then if not c then
return return
end end
if vim.bo.filetype == "lua" then if vim.bo.filetype == "lua" then
-- Format the current buffer on save -- Format the current buffer on save
vim.api.nvim_create_autocmd("BufWritePre", { vim.api.nvim_create_autocmd("BufWritePre", {
buffer = args.buf, buffer = args.buf,
callback = function() callback = function()
vim.lsp.buf.format({ bufnr = args.buf, id = c.id }) vim.lsp.buf.format({ bufnr = args.buf, id = c.id })
end, end,
}) })
end end
end, end,
}) })
-- local cmp_select = { behavior = cmp.SelectBehavior.Select } -- local cmp_select = { behavior = cmp.SelectBehavior.Select }
--- Select item next/prev, taking into account whether the cmp window is --- Select item next/prev, taking into account whether the cmp window is
--- top-down or bottoom-up so that the movement is always in the same direction. --- top-down or bottoom-up so that the movement is always in the same direction.
-- local select_item_smart = function(dir, opts) -- local select_item_smart = function(dir, opts)
-- return function(fallback) -- return function(fallback)
-- if cmp.visible() then -- if cmp.visible() then
-- opts = opts or { behavior = cmp.SelectBehavior.Select } -- opts = opts or { behavior = cmp.SelectBehavior.Select }
-- if cmp.core.view.custom_entries_view:is_direction_top_down() then -- if cmp.core.view.custom_entries_view:is_direction_top_down() then
-- ({ next = cmp.select_next_item, prev = cmp.select_prev_item })[dir](opts) -- ({ next = cmp.select_next_item, prev = cmp.select_prev_item })[dir](opts)
-- else -- else
-- ({ prev = cmp.select_next_item, next = cmp.select_prev_item })[dir](opts) -- ({ prev = cmp.select_next_item, next = cmp.select_prev_item })[dir](opts)
-- end -- end
-- else -- else
-- fallback() -- fallback()
-- end -- end
-- end -- end
-- end -- end
-- cmp.setup({ -- cmp.setup({
-- snippet = { -- snippet = {
-- expand = function(args) -- expand = function(args)
-- require("luasnip").lsp_expand(args.body) -- For `luasnip` users. -- require("luasnip").lsp_expand(args.body) -- For `luasnip` users.
-- end, -- end,
-- }, -- },
-- completion = { -- completion = {
-- completeopt = "menu,menuone,noinsert", -- completeopt = "menu,menuone,noinsert",
-- }, -- },
-- -- No idea what this is -- -- No idea what this is
-- matching = { -- matching = {
-- disallow_fuzzy_matching = false, -- disallow_fuzzy_matching = false,
-- disallow_fullfuzzy_matching = false, -- disallow_fullfuzzy_matching = false,
-- disallow_partial_fuzzy_matching = false, -- disallow_partial_fuzzy_matching = false,
-- }, -- },
-- performance = { -- performance = {
-- -- debounce = 50, -- -- debounce = 50,
-- debounce = 25, -- debounce = 25,
-- -- max_view_entries = 20, -- -- max_view_entries = 20,
-- }, -- },
-- That crazy window -- That crazy window
-- window = { -- window = {
-- completion = cmp.config.window.bordered({ -- completion = cmp.config.window.bordered({
-- border = "single", -- border = "single",
-- side_padding = 2, -- side_padding = 2,
-- col_offset = -3, -- col_offset = -3,
-- max_width = 80, -- max_width = 80,
-- }), -- }),
-- documentation = cmp.config.window.bordered({ -- documentation = cmp.config.window.bordered({
-- max_width = 50, -- max_width = 50,
-- }), -- }),
-- }, -- },
-- mapping = cmp.mapping.preset.insert({ -- mapping = cmp.mapping.preset.insert({
-- ["<C-p>"] = select_item_smart("prev", cmp_select), -- ["<C-p>"] = select_item_smart("prev", cmp_select),
-- ["<C-n>"] = select_item_smart("next", cmp_select), -- ["<C-n>"] = select_item_smart("next", cmp_select),
-- ["<C-e>"] = cmp.mapping.close(), -- ["<C-e>"] = cmp.mapping.close(),
-- ["<C-y>"] = cmp.mapping.confirm({ select = true }), -- ["<C-y>"] = cmp.mapping.confirm({ select = true }),
-- ["<Tab>"] = cmp.mapping.confirm({ select = true }), -- ["<Tab>"] = cmp.mapping.confirm({ select = true }),
-- ["<C-B>"] = cmp.mapping.complete(), -- ["<C-B>"] = cmp.mapping.complete(),
-- ["<C-u>"] = cmp.mapping.scroll_docs(-3), -- ["<C-u>"] = cmp.mapping.scroll_docs(-3),
-- ["<C-d>"] = cmp.mapping.scroll_docs(3), -- ["<C-d>"] = cmp.mapping.scroll_docs(3),
-- ["<C-g>"] = cmp.mapping.abort(), -- ["<C-g>"] = cmp.mapping.abort(),
-- }), -- }),
-- sorting = { -- sorting = {
-- comparators = { -- comparators = {
-- cmp.config.compare.locality, -- cmp.config.compare.locality,
-- cmp.config.compare.offset, -- cmp.config.compare.offset,
-- cmp.config.compare.recently_used, -- cmp.config.compare.recently_used,
-- cmp.config.compare.exact, -- cmp.config.compare.exact,
-- cmp.config.compare.order, -- cmp.config.compare.order,
-- cmp.config.compare.length, -- cmp.config.compare.length,
-- function(entry1, entry2) -- function(entry1, entry2)
-- local _, entry1_under = entry1.completion_item.label:find("^_+") -- local _, entry1_under = entry1.completion_item.label:find("^_+")
-- local _, entry2_under = entry2.completion_item.label:find("^_+") -- local _, entry2_under = entry2.completion_item.label:find("^_+")
-- entry1_under = entry1_under or 0 -- entry1_under = entry1_under or 0
-- entry2_under = entry2_under or 0 -- entry2_under = entry2_under or 0
-- if entry1_under > entry2_under then -- if entry1_under > entry2_under then
-- return false -- return false
-- elseif entry1_under < entry2_under then -- elseif entry1_under < entry2_under then
-- return true -- return true
-- end -- end
-- end, -- end,
-- cmp.config.compare.kind, -- cmp.config.compare.kind,
-- cmp.config.compare.sort_text, -- cmp.config.compare.sort_text,
-- }, -- },
-- }, -- },
-- sources = cmp.config.sources({ -- sources = cmp.config.sources({
-- { name = "neopyter" }, -- { name = "neopyter" },
-- { name = "nvim_lsp" }, -- { name = "nvim_lsp" },
-- { name = "codeium" }, -- { name = "codeium" },
-- { name = "luasnip" }, -- For luasnip users. -- { name = "luasnip" }, -- For luasnip users.
-- }, { -- }, {
-- { name = "buffer" }, -- { name = "buffer" },
-- }), -- }),
-- formatting = { -- formatting = {
-- fields = { -- fields = {
-- "abbr", -- "abbr",
-- "kind", -- "kind",
-- "menu", -- "menu",
-- }, -- },
-- expandable_indicator = true, -- expandable_indicator = true,
-- format = lspkind.cmp_format({ -- format = lspkind.cmp_format({
-- mode = "symbol_text", -- mode = "symbol_text",
-- maxwidth = 50, -- maxwidth = 50,
-- ellipsis_char = "...", -- ellipsis_char = "...",
-- menu = { -- menu = {
-- neopyter = "[Neopyter]", -- neopyter = "[Neopyter]",
-- }, -- },
-- symbol_map = { -- symbol_map = {
-- -- specific complete item kind icon -- -- specific complete item kind icon
-- ["Magic"] = "🪄", -- ["Magic"] = "🪄",
-- ["Path"] = "📁", -- ["Path"] = "📁",
-- ["Dict key"] = "🔑", -- ["Dict key"] = "🔑",
-- ["Instance"] = "󱃻", -- ["Instance"] = "󱃻",
-- ["Statement"] = "󱇯", -- ["Statement"] = "󱇯",
-- }, -- },
-- }), -- }),
-- }, -- },
-- }) -- })
-- -- menu item highlight -- -- menu item highlight
-- vim.api.nvim_set_hl(0, "CmpItemKindMagic", { bg = "NONE", fg = "#D4D434" }) -- vim.api.nvim_set_hl(0, "CmpItemKindMagic", { bg = "NONE", fg = "#D4D434" })
-- vim.api.nvim_set_hl(0, "CmpItemKindPath", { link = "CmpItemKindFolder" }) -- vim.api.nvim_set_hl(0, "CmpItemKindPath", { link = "CmpItemKindFolder" })
-- vim.api.nvim_set_hl(0, "CmpItemKindDictkey", { link = "CmpItemKindKeyword" }) -- vim.api.nvim_set_hl(0, "CmpItemKindDictkey", { link = "CmpItemKindKeyword" })
-- vim.api.nvim_set_hl(0, "CmpItemKindInstance", { link = "CmpItemKindVariable" }) -- vim.api.nvim_set_hl(0, "CmpItemKindInstance", { link = "CmpItemKindVariable" })
-- vim.api.nvim_set_hl(0, "CmpItemKindStatement", { link = "CmpItemKindVariable" }) -- vim.api.nvim_set_hl(0, "CmpItemKindStatement", { link = "CmpItemKindVariable" })
-- vim.diagnostic.config({ -- vim.diagnostic.config({
-- -- update_in_insert = true, -- Update diagnostics in Insert mode -- -- update_in_insert = true, -- Update diagnostics in Insert mode
-- -- ^ (if false, diagnostics are updated on InsertLeave) -- -- ^ (if false, diagnostics are updated on InsertLeave)
-- --
-- underline = true, -- underline = true,
-- --
-- virtual_text = true, -- virtual_text = true,
-- --
-- severity_sort = true, -- high -> low -- severity_sort = true, -- high -> low
-- --
-- -- float = { -- -- float = {
-- -- focusable = false, -- -- focusable = false,
-- -- style = "minimal", -- -- style = "minimal",
-- -- border = "rounded", -- -- border = "rounded",
-- -- source = true, -- -- source = true,
-- -- header = { "  Diagnostics", "String" }, -- -- header = { "  Diagnostics", "String" },
-- -- prefix = function(_, _, _) -- -- prefix = function(_, _, _)
-- -- return "  ", "String" -- -- return "  ", "String"
-- -- end, -- -- end,
-- -- }, -- -- },
-- }) -- })
-- treesitter jupyter notebook stuff -- treesitter jupyter notebook stuff
-- require("nvim-treesitter.configs").setup({ -- require("nvim-treesitter.configs").setup({
-- textobjects = { -- textobjects = {
-- move = { -- move = {
-- enable = true, -- enable = true,
-- goto_next_start = { -- goto_next_start = {
-- ["]j"] = "@cellseparator", -- ["]j"] = "@cellseparator",
-- ["]c"] = "@cellcontent", -- ["]c"] = "@cellcontent",
-- }, -- },
-- goto_previous_start = { -- goto_previous_start = {
-- ["[j"] = "@cellseparator", -- ["[j"] = "@cellseparator",
-- ["[c"] = "@cellcontent", -- ["[c"] = "@cellcontent",
-- }, -- },
-- }, -- },
-- }, -- },
-- }) -- })
end, end,
}, },
} }