Compare commits

..

No commits in common. "39108801832d093c5da7e5d77858ab02c65e19c4" and "bf1a1a9ee27a504cd648d3b5253abb120972c9d7" have entirely different histories.

25 changed files with 222 additions and 329 deletions

View file

@ -2,7 +2,7 @@
#* Color theme, looks for a .theme file in "$HOME/.config/bashtop/themes" and "$HOME/.config/bashtop/user_themes" #* Color theme, looks for a .theme file in "$HOME/.config/bashtop/themes" and "$HOME/.config/bashtop/user_themes"
#* Should be prefixed with either "themes/" or "user_themes/" depending on location, "Default" for builtin default theme #* Should be prefixed with either "themes/" or "user_themes/" depending on location, "Default" for builtin default theme
#* color_theme="themes/gruvbox" color_theme="themes/gruvbox"
#* Update time in milliseconds, increases automatically if set below internal loops processing time, recommended 2000 ms or above for better sample times for graphs #* Update time in milliseconds, increases automatically if set below internal loops processing time, recommended 2000 ms or above for better sample times for graphs
update_ms="2500" update_ms="2500"

View file

@ -1,26 +1,15 @@
include ./theme.conf
font_size 10
font_family Jetbrains Mono Nerd Font
bold_font auto
italic_font auto
bold_italic_font auto
# font_family PragmataPro Mono Liga # font_family PragmataPro Mono Liga
# bold_font PragmataPro Mono Liga Bold # bold_font PragmataPro Mono Liga Bold
# italic_font PragmataPro Mono Liga Italic # italic_font PragmataPro Mono Liga Italic
# bold_italic_font PragmataPro Mono Liga Bold Italic # bold_italic_font PragmataPro Mono Liga Bold Italic
# font_family Terminess Nerd Font Mono
# bold_font auto font_family JetBrainsMono
# italic_font auto bold_font auto
# bold_italic_font auto italic_font auto
# font_family Jetbrains Mono bold_italic_font auto
# bold_font auto
# italic_font auto
# bold_italic_font auto
# font_family Liberation Mono # font_family Liberation Mono
@ -38,13 +27,13 @@ bold_italic_font auto
# italic_font TerminusTTF-Italic # italic_font TerminusTTF-Italic
# adjust_line_height -1 font_size 10
clipboard_control write-clipboard write-primary read-clipboard-ask read-primary-ask clipboard_control write-clipboard write-primary read-clipboard-ask read-primary-ask
window_padding_width 3 window_padding_width 3
remember_window_size no remember_window_size no
copy_on_select yes copy_on_select yes
background_opacity 1 background_opacity 0.95
bell_path /home/thomas/dotfiles/gruvbox-95/sounds/st-terminal-beep.wav bell_path /home/thomas/dotfiles/gruvbox-95/sounds/st-terminal-beep.wav
# startup_session launch.conf # startup_session launch.conf
@ -61,9 +50,3 @@ confirm_os_window_close 0
# inactive_tab_background #000e07 # inactive_tab_background #000e07
# inactive_tab_font_style normal # inactive_tab_font_style normal
# BEGIN_KITTY_THEME
# Solarized Dark
include current-theme.conf
# END_KITTY_THEME

View file

@ -1,6 +1,4 @@
-- require("config.colourscheme") require("config.colourscheme")
require("config.options") require("config.options")
require("config.keybindings") require("config.keybindings")
require("config.lazy") require("config.lazy")
--require("tinted-colorscheme").setup("base24-alien-blood")

View file

@ -1,46 +1,47 @@
{ {
"LuaSnip": { "branch": "master", "commit": "5a1e39223db9a0498024a77b8441169d260c8c25" }, "LuaSnip": { "branch": "master", "commit": "03c8e67eb7293c404845b3982db895d59c0d1538" },
"cmp-buffer": { "branch": "main", "commit": "b74fab3656eea9de20a9b8116afa3cfc4ec09657" }, "bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" },
"cmp-nvim-lsp": { "branch": "main", "commit": "cbc7b02bb99fae35cb42f514762b89b5126651ef" }, "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
"cmp-path": { "branch": "main", "commit": "c642487086dbd9a93160e1679a1327be111cbc25" }, "cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
"conform.nvim": { "branch": "master", "commit": "5420c4b5ea0aeb99c09cfbd4fd0b70d257b44f25" }, "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" }, "conform.nvim": { "branch": "master", "commit": "023f795dbcf32d4351b6a9ed2e613d471b5bb812" },
"git-blame.nvim": { "branch": "master", "commit": "54da04264ec5313d602aebea7c5dc90141696ad7" }, "diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" },
"gitsigns.nvim": { "branch": "main", "commit": "130beacf8a51f00aede9c31064c749136679a321" }, "friendly-snippets": { "branch": "main", "commit": "de8fce94985873666bd9712ea3e49ee17aadb1ed" },
"git-blame.nvim": { "branch": "master", "commit": "2883a7460f611c2705b23f12d58d398d5ce6ec00" },
"gitsigns.nvim": { "branch": "main", "commit": "ac5aba6dce8c06ea22bea2c9016f51a2dbf90dc7" },
"gruvbox-material": { "branch": "master", "commit": "b16dcd787db5ba9302b54ebeac186784c2aed29a" },
"gv.vim": { "branch": "master", "commit": "b6bb6664e2c95aa584059f195eb3a9f3cb133994" }, "gv.vim": { "branch": "master", "commit": "b6bb6664e2c95aa584059f195eb3a9f3cb133994" },
"hererocks": { "branch": "master", "commit": "98f3ff2f5e9c1e7c03dc46eb1a61ea57a4146870" }, "hererocks": { "branch": "master", "commit": "c9c5444dea1e07e005484014a8231aa667be30b6" },
"image.nvim": { "branch": "master", "commit": "446a8a5cc7a3eae3185ee0c697732c32a5547a0b" }, "image.nvim": { "branch": "master", "commit": "7f61c1940a8b072ca47a28928d2375dc1e11f464" },
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" }, "lazy.nvim": { "branch": "main", "commit": "7967abe55752aa90532e6bb4bd4663fe27a264cb" },
"lazygit.nvim": { "branch": "main", "commit": "a04ad0dbc725134edbee3a5eea29290976695357" }, "lazygit.nvim": { "branch": "main", "commit": "56760339a81cd1540d5a72fd9d93010a2677b55d" },
"lspkind.nvim": { "branch": "master", "commit": "3ddd1b4edefa425fda5a9f95a4f25578727c0bb3" }, "lspkind.nvim": { "branch": "master", "commit": "a700f1436d4a938b1a1a93c9962dc796afbaef4d" },
"lspsaga.nvim": { "branch": "main", "commit": "8efe00d6aed9db6449969f889170f1a7e43101a1" }, "lspsaga.nvim": { "branch": "main", "commit": "d027f8b9c7c55e26cf4030c8657a2fc8222ed762" },
"lualine.nvim": { "branch": "master", "commit": "47f91c416daef12db467145e16bed5bbfe00add8" }, "lualine.nvim": { "branch": "master", "commit": "2a5bae925481f999263d6f5ed8361baef8df4f83" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "4cfe411526a7a99c18281135e8b4765ae6330d15" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "cab00668464d2914d0752b86168b4a431cc93eb2" },
"mason.nvim": { "branch": "main", "commit": "57e5a8addb8c71fb063ee4acda466c7cf6ad2800" }, "mason-tool-installer.nvim": { "branch": "main", "commit": "c5e07b8ff54187716334d585db34282e46fa2932" },
"mini.diff": { "branch": "main", "commit": "6010e588e9ed14724880f244d7fa3df8f0be3f46" }, "mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
"neo-tree.nvim": { "branch": "v3.x", "commit": "f3df514fff2bdd4318127c40470984137f87b62e" }, "neo-tree.nvim": { "branch": "v3.x", "commit": "a77af2e764c5ed4038d27d1c463fa49cd4794e07" },
"neodev.nvim": { "branch": "main", "commit": "46aa467dca16cf3dfe27098042402066d2ae242d" }, "neodev.nvim": { "branch": "main", "commit": "46aa467dca16cf3dfe27098042402066d2ae242d" },
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" }, "neogit": { "branch": "master", "commit": "6d1bd94f7fca92a50a892f494920696b5defa8c8" },
"nvim-autopairs": { "branch": "master", "commit": "c2a0dd0d931d0fb07665e1fedb1ea688da3b80b4" }, "nui.nvim": { "branch": "main", "commit": "b58e2bfda5cea347c9d58b7f11cf3012c7b3953f" },
"nvim-cmp": { "branch": "main", "commit": "d97d85e01339f01b842e6ec1502f639b080cb0fc" }, "nvim-autopairs": { "branch": "master", "commit": "ee297f215e95a60b01fde33275cc3c820eddeebe" },
"nvim-cmp": { "branch": "main", "commit": "f17d9b4394027ff4442b298398dfcaab97e40c4f" },
"nvim-colorizer.lua": { "branch": "master", "commit": "a065833f35a3a7cc3ef137ac88b5381da2ba302e" }, "nvim-colorizer.lua": { "branch": "master", "commit": "a065833f35a3a7cc3ef137ac88b5381da2ba302e" },
"nvim-lspconfig": { "branch": "master", "commit": "d696e36d5792daf828f8c8e8d4b9aa90c1a10c2a" }, "nvim-lspconfig": { "branch": "master", "commit": "87c7c83ce62971e0bdb29bb32b8ad2b19c8f95d0" },
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" }, "nvim-treesitter": { "branch": "master", "commit": "20e10ca6914f65cf1410232433fb58de70ab6b39" },
"nvim-ts-autotag": { "branch": "main", "commit": "c4ca798ab95b316a768d51eaaaee48f64a4a46bc" }, "nvim-ts-autotag": { "branch": "main", "commit": "e239a560f338be31337e7abc3ee42515daf23f5e" },
"nvim-ts-context-commentstring": { "branch": "main", "commit": "1b212c2eee76d787bbea6aa5e92a2b534e7b4f8f" }, "nvim-web-devicons": { "branch": "master", "commit": "19d257cf889f79f4022163c3fbb5e08639077bd8" },
"nvim-web-devicons": { "branch": "master", "commit": "6788013bb9cb784e606ada44206b0e755e4323d7" }, "plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" }, "rainbow-delimiters.nvim": { "branch": "master", "commit": "f22496dfdd46da4d571f5254c72eff65ff5a1c27" },
"rainbow_csv": { "branch": "master", "commit": "3dbbfd7d17536aebfb80f571255548495574c32b" }, "rainbow_csv": { "branch": "master", "commit": "3dbbfd7d17536aebfb80f571255548495574c32b" },
"solarized.nvim": { "branch": "main", "commit": "c0dfe1cbfabd93b546baf5f1408f5df7e02e2050" }, "telescope-file-browser.nvim": { "branch": "master", "commit": "626998e5c1b71c130d8bc6cf7abb6709b98287bb" },
"telescope-file-browser.nvim": { "branch": "master", "commit": "3610dc7dc91f06aa98b11dca5cc30dfa98626b7e" }, "telescope-fzf-native.nvim": { "branch": "main", "commit": "cf48d4dfce44e0b9a2e19a008d6ec6ea6f01a83b" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "6fea601bd2b694c6f2ae08a6c6fab14930c60e2c" },
"telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" }, "telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
"tinted-nvim": { "branch": "main", "commit": "0347c54827694e85f4880233eefd71be3978e439" }, "trouble.nvim": { "branch": "main", "commit": "3dc00c0447c016cd43e03054c3d49436a1f2076d" },
"trouble.nvim": { "branch": "main", "commit": "bd67efe408d4816e25e8491cc5ad4088e708a69a" },
"vim-commentary": { "branch": "master", "commit": "64a654ef4a20db1727938338310209b6a63f60c9" }, "vim-commentary": { "branch": "master", "commit": "64a654ef4a20db1727938338310209b6a63f60c9" },
"vim-css-color": { "branch": "master", "commit": "14fd934cdd9ca1ac0e53511094e612eb9bace373" }, "vim-css-color": { "branch": "master", "commit": "950e80352b325ff26d3b0faf95b29e301c200f7d" },
"vim-fugitive": { "branch": "master", "commit": "61b51c09b7c9ce04e821f6cf76ea4f6f903e3cf4" }, "vim-fugitive": { "branch": "master", "commit": "d4877e54cef67f5af4f950935b1ade19ed6b7370" },
"vim-smoothie": { "branch": "master", "commit": "df1e324e9f3395c630c1c523d0555a01d2eb1b7e" }, "vim-smoothie": { "branch": "master", "commit": "df1e324e9f3395c630c1c523d0555a01d2eb1b7e" },
"vim-wakatime": { "branch": "master", "commit": "d7973b157a632d1edeff01818f18d67e584eeaff" }, "zk-nvim": { "branch": "main", "commit": "aa9b346f2b0ab0c822bef917ee7f607d5c99f7bc" }
"zk-nvim": { "branch": "main", "commit": "8df80d0dc2d66e53b08740361a600746a6e4edcf" }
} }

View file

@ -1,8 +1,8 @@
local global = vim.g -- local global = vim.g
global.gruvbox_material_background = "hard" -- global.gruvbox_material_background = "medium"
global.gruvbox_material_enable_bold = 1 -- global.gruvbox_material_enable_bold = 0
global.gruvbox_material_enable_italic = 1 -- global.gruvbox_material_enable_italic = 0
-- local function update_highlight_group(group, tbl) -- local function update_highlight_group(group, tbl)
-- local old_hl = vim.api.nvim_get_hl_by_name(group, true) -- local old_hl = vim.api.nvim_get_hl_by_name(group, true)
@ -13,5 +13,3 @@ global.gruvbox_material_enable_italic = 1
-- update_highlight_group("Function", { bold = false }) -- update_highlight_group("Function", { bold = false })
-- update_highlight_group("Comment", { italic = false }) -- update_highlight_group("Comment", { italic = false })
-- update_highlight_group("String", { italic = false }) -- update_highlight_group("String", { italic = false })
-- vim.cmd.colorscheme("base16-ayu-dark")

View file

@ -29,8 +29,3 @@ keymap.set("n", "<leader>sp", function()
vim.opt.spell = not vim.opt.spell:get() vim.opt.spell = not vim.opt.spell:get()
vim.opt.spelllang = "en_gb" vim.opt.spelllang = "en_gb"
end, { desc = "Toggle spell check" }) end, { desc = "Toggle spell check" })
-- Toggle in-file Git diff
keymap.set("n", "<leader>dif", function()
MiniDiff.toggle_overlay()
end, { desc = "Toggle in-file Git diff" })

View file

@ -13,7 +13,6 @@ if not (vim.uv or vim.loop).fs_stat(lazypath) then
os.exit(1) os.exit(1)
end end
end end
vim.opt.rtp:prepend(lazypath) vim.opt.rtp:prepend(lazypath)
-- Make sure to setup `mapleader` and `maplocalleader` before -- Make sure to setup `mapleader` and `maplocalleader` before

View file

@ -34,7 +34,7 @@ opt.backspace = "indent,eol,start"
opt.conceallevel = 0 opt.conceallevel = 0
opt.spelllang = "en_gb" opt.spelllang = "en_gb"
opt.number = true opt.number = true
opt.relativenumber = false opt.relativenumber = true
vim.opt.spell = false vim.opt.spell = false
-- vim.g.gruvbox_material_enable_bold = 1 -- vim.g.gruvbox_material_enable_bold = 1

View file

@ -1,5 +0,0 @@
return {
"windwp/nvim-ts-autotag",
event = { "BufReadPre", "BufNewFile" },
opts = {},
}

View file

@ -1,2 +1 @@
-- return { "nvim-tree/nvim-web-devicons" } return { "nvim-tree/nvim-web-devicons" }
return {}

View file

@ -1,43 +1,36 @@
return { return {
"stevearc/conform.nvim", "stevearc/conform.nvim",
event = { "BufReadPre", "BufNewFile" }, event = { "BufReadPre", "BufNewFile" },
config = function() config = function()
local conform = require("conform") local conform = require("conform")
conform.setup({ conform.setup({
formatters_by_ft = { formatters_by_ft = {
javascript = { "prettier" }, javascript = { "prettier" },
typescript = { "prettier" }, typescript = { "prettier" },
javascriptreact = { "prettier" }, javascriptreact = { "prettier" },
typescriptreact = { "prettier" }, typescriptreact = { "prettier" },
css = { "prettier" }, css = { "prettier" },
html = { "prettier" }, html = { "prettier" },
json = { "prettier" }, json = { "prettier" },
yaml = { "prettier" }, yaml = { "prettier" },
markdown = { "prettier" }, markdown = { "prettier" },
lua = { "stylua" }, lua = { "stylua" },
python = { "isort", "black" }, python = { "isort", "black" },
c = { "clang_format" }, },
}, format_on_save = {
formatters = { lsp_fallback = true,
clang_format = { async = false,
args = { "--style=file" }, timeout_ms = 1000,
}, },
}, })
format_on_save = { vim.keymap.set({ "n", "v" }, "<leader>f", function()
lsp_fallback = true, conform.format({
async = false, lsp_fallback = true,
timeout_ms = 1000, async = false,
}, timeout_ms = 1000,
}) })
end, { desc = "Format file or range (in visual mode)" })
vim.keymap.set({ "n", "v" }, "<leader>f", function() end,
conform.format({
lsp_fallback = true,
async = false,
timeout_ms = 1000,
})
end, { desc = "Format file or range (in visual mode)" })
end,
} }

View file

@ -1,9 +1,17 @@
-- return { return {
-- "xiantang/darcula-dark.nvim", "sainnhe/gruvbox-material",
-- config = function() lazy = false,
-- vim.cmd("colorscheme darcula-dark") priority = 1000,
-- end, config = function()
-- } -- Optionally configure and load the colorscheme
-- directly inside the plugin declaration.
-- vim.g.gruvbox_material_disable_italic_comment = true
vim.g.gruvbox_material_enable_bold = false
vim.g.gruvbox_material_enable_italic = false
vim.cmd.colorscheme("gruvbox-material")
end,
}
-- return { -- return {
-- "https://github.com/ellisonleao/gruvbox.nvim", -- "https://github.com/ellisonleao/gruvbox.nvim",
@ -11,17 +19,17 @@
-- priority = 1000, -- priority = 1000,
-- config = function() -- config = function()
-- require("gruvbox").setup({ -- require("gruvbox").setup({
-- invert_tabline = false, -- invert_tabline = true,
-- invert_selection = false, -- invert_selection = true,
-- terminal_colors = true, -- add neovim terminal colors -- terminal_colors = true, -- add neovim terminal colors
-- undercurl = true, -- undercurl = true,
-- underline = true, -- underline = true,
-- bold = false, -- bold = true,
-- italic = { -- italic = {
-- comments = false, -- comments = true,
-- emphasis = true, -- emphasis = false,
-- strings = false, -- strings = true,
-- operators = false, -- operators = true,
-- folds = false, -- folds = false,
-- }, -- },
-- }) -- })
@ -29,36 +37,6 @@
-- end, -- end,
-- } -- }
--return {
-- "maxmx03/solarized.nvim",
-- lazy = false,
-- priority = 1000,
-- ---@type solarized.config
-- opts = {},
-- config = function(_, opts)
-- vim.o.termguicolors = true
-- vim.o.background = "dark"
-- require("solarized").setup(opts)
-- vim.cmd.colorscheme("solarized")
-- end,
--}
return {
"Tsuzat/NeoSolarized.nvim",
lazy = false, -- make sure we load this during startup if it is your main colorscheme
priority = 1000, -- make sure to load this before all the other start plugins
config = function()
require("NeoSolarized").setup({
transparent = false,
enable_italics = false,
styles = {
string = { italic = false },
},
})
vim.cmd([[ colorscheme NeoSolarized ]])
end,
}
-- return { -- return {
-- "f4z3r/gruvbox-material.nvim", -- "f4z3r/gruvbox-material.nvim",
-- name = "gruvbox-material", -- name = "gruvbox-material",
@ -66,26 +44,3 @@ return {
-- priority = 1000, -- priority = 1000,
-- opts = {}, -- opts = {},
-- } -- }
-- return {
-- "gmr458/vscode_modern_theme.nvim",
-- lazy = false,
-- priority = 1000,
-- config = function()
-- require("vscode_modern").setup({
-- cursorline = true,
-- transparent_background = false,
-- nvim_tree_darker = true,
-- })
-- vim.cmd.colorscheme("vscode_modern")
-- end,
-- }
-- return {
-- "olimorris/onedarkpro.nvim",
-- priority = 1000, -- Ensure it loads first
-- config = function()
-- vim.cmd("colorscheme onedark")
-- end,
-- }
--

View file

@ -6,7 +6,10 @@ return {
{ "folke/neodev.nvim", opts = {} }, { "folke/neodev.nvim", opts = {} },
}, },
config = function() config = function()
local nvim_lsp = require("lspconfig")
local mason_lspconfig = require("mason-lspconfig")
local on_attach = function(client, bufnr) local on_attach = function(client, bufnr)
-- format on save
if client.server_capabilities.documentFormattingProvider then if client.server_capabilities.documentFormattingProvider then
vim.api.nvim_create_autocmd("BufWritePre", { vim.api.nvim_create_autocmd("BufWritePre", {
group = vim.api.nvim_create_augroup("Format", { clear = true }), group = vim.api.nvim_create_augroup("Format", { clear = true }),
@ -19,72 +22,55 @@ return {
end end
local capabilities = require("cmp_nvim_lsp").default_capabilities() local capabilities = require("cmp_nvim_lsp").default_capabilities()
mason_lspconfig.setup_handlers({
function(server)
nvim_lsp[server].setup({
capabilities = capabilities,
})
end,
["ts_ls"] = function()
nvim_lsp["ts_ls"].setup({
on_attach = on_attach,
capabilities = capabilities,
})
end,
["cssls"] = function()
nvim_lsp["cssls"].setup({
on_attach = on_attach,
capabilities = capabilities,
})
end,
["html"] = function()
nvim_lsp["html"].setup({
on_attach = on_attach,
capabilities = capabilities,
})
end,
["jsonls"] = function()
nvim_lsp["jsonls"].setup({
on_attach = on_attach,
capabilities = capabilities,
})
end,
["eslint"] = function()
nvim_lsp["eslint"].setup({
on_attach = on_attach,
capabilities = capabilities,
})
end,
["pyright"] = function()
nvim_lsp["pyright"].setup({
on_attach = on_attach,
capabilities = capabilities,
})
end,
local servers = { ["marksman"] = function()
"ts_ls", nvim_lsp["marksman"].setup({
"bashls", on_attach = on_attach,
"cssls", capabilities = capabilities,
"eslint", })
"html", end,
"jsonls", })
"ruff",
"pyright",
"lua_ls",
"yamlls",
"marksman",
"clangd",
}
for _, server in ipairs(servers) do
vim.lsp.config(server, {
capabilities = capabilities,
on_attach = on_attach,
})
vim.lsp.enable(server)
end
end, end,
} }
-- return {
-- "neovim/nvim-lspconfig",
-- event = { "BufReadPre", "BufNewFile" },
-- dependencies = {
-- "hrsh7th/cmp-nvim-lsp",
-- { "folke/neodev.nvim", opts = {} },
-- },
-- config = function()
-- local on_attach = function(client, bufnr)
-- if client.server_capabilities.documentFormattingProvider then
-- vim.api.nvim_create_autocmd("BufWritePre", {
-- group = vim.api.nvim_create_augroup("Format", { clear = true }),
-- buffer = bufnr,
-- callback = function()
-- vim.lsp.buf.format()
-- end,
-- })
-- end
-- end
-- local capabilities = require("cmp_nvim_lsp").default_capabilities()
-- local servers = {
-- "ts_ls",
-- "bashls",
-- "cssls",
-- "eslint",
-- "html",
-- "jsonls",
-- "pyright",
-- "lua_ls",
-- "yamlls",
-- "marksman",
-- }
-- for _, server in ipairs(servers) do
-- require("lspconfig")[server].setup({
-- on_attach = on_attach,
-- capabilities = capabilities,
-- })
-- end
-- end,
-- }

View file

@ -2,7 +2,7 @@ return {
"nvimdev/lspsaga.nvim", "nvimdev/lspsaga.nvim",
dependencies = { dependencies = {
"nvim-treesitter/nvim-treesitter", -- optional "nvim-treesitter/nvim-treesitter", -- optional
-- "nvim-tree/nvim-web-devicons", -- optional "nvim-tree/nvim-web-devicons", -- optional
}, },
keys = { keys = {

View file

@ -1,11 +1,11 @@
return { return {
"nvim-lualine/lualine.nvim", "nvim-lualine/lualine.nvim",
lazy = false, lazy = false,
-- dependencies = { "nvim-tree/nvim-web-devicons" }, dependencies = { "nvim-tree/nvim-web-devicons" },
opts = { opts = {
options = { options = {
theme = "solarized", theme = "gruvbox-material",
icons_enabled = false, icons_enabled = true,
component_separators = { left = "|", right = "|" }, component_separators = { left = "|", right = "|" },
section_separators = { left = " ", right = " " }, section_separators = { left = " ", right = " " },
}, },

View file

@ -2,9 +2,38 @@ return {
"williamboman/mason.nvim", "williamboman/mason.nvim",
dependencies = { dependencies = {
"williamboman/mason-lspconfig.nvim", "williamboman/mason-lspconfig.nvim",
"WhoIsSethDaniel/mason-tool-installer.nvim",
}, },
config = function() config = function()
require("mason").setup() require("mason").setup()
require("mason-lspconfig").setup() require("mason-lspconfig").setup({
automatic_installation = true,
ensure_installed = {
"ts_ls",
"bashls",
"cssls",
"eslint",
"html",
"jsonls",
"pyright",
"lua_ls",
"jsonls",
"yamlls",
"marksman",
},
})
require("mason-tool-installer").setup({
ensure_installed = {
"prettier",
"stylua",
"isort",
"black",
"pylint",
"eslint_d",
"marksman",
"shfmt",
},
})
end, end,
} }

View file

@ -1,8 +0,0 @@
return {
"nvim-mini/mini.diff",
opts = {
view = {
style = "sign",
},
},
}

View file

@ -1,6 +1 @@
return {} return { "HiPhish/rainbow-delimiters.nvim" }
-- return {
-- "HiPhish/rainbow-delimiters.nvim",
-- event = { "BufReadPre", "BufNewFile" },
-- }
-- return { "HiPhish/rainbow-delimiters.nvim" }

View file

@ -17,10 +17,8 @@ return {
}, },
}, },
file_ignore_patterns = { file_ignore_patterns = {
"build/",
"neuron/", "neuron/",
"img", "img",
".cache/",
"node_modules", "node_modules",
".git", ".git",
}, },

View file

@ -1,3 +0,0 @@
return {
"tinted-theming/tinted-nvim",
}

View file

@ -2,9 +2,9 @@ return {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
event = { "BufReadPre", "BufNewFile" }, event = { "BufReadPre", "BufNewFile" },
build = ":TSUpdate", build = ":TSUpdate",
-- dependencies = { dependencies = {
-- "windwp/nvim-ts-autotag", "windwp/nvim-ts-autotag",
-- }, },
config = function() config = function()
local treesitter = require("nvim-treesitter.configs") local treesitter = require("nvim-treesitter.configs")
treesitter.setup({ treesitter.setup({
@ -13,9 +13,9 @@ return {
additional_vim_regex_highlighting = false, additional_vim_regex_highlighting = false,
}, },
indent = { enable = true }, indent = { enable = true },
-- autotag = { autotag = {
-- enable = true, enable = true,
-- }, },
ensure_installed = { ensure_installed = {
"json", "json",
"javascript", "javascript",
@ -44,16 +44,16 @@ return {
node_decremental = "<bs>", node_decremental = "<bs>",
}, },
}, },
-- rainbow = { rainbow = {
-- enable = true, enable = true,
-- disable = { "html" }, disable = { "html" },
-- extended_mode = false, extended_mode = false,
-- max_file_lines = nil, max_file_lines = nil,
-- }, },
-- context_commentstring = { context_commentstring = {
-- enable = true, enable = true,
-- enable_autocmd = false, enable_autocmd = false,
-- }, },
}) })
end, end,
} }

View file

@ -1,15 +0,0 @@
return {
"JoosepAlviste/nvim-ts-context-commentstring",
event = { "BufReadPre", "BufNewFile" },
config = function()
require("ts_context_commentstring").setup({
enable_autocmd = false,
})
local get_option = vim.filetype.get_option
vim.filetype.get_option = function(filetype, option)
return option == "commentstring" and require("ts_context_commentstring.internal").calculate_commentstring()
or get_option(filetype, option)
end
end,
}

View file

@ -1 +0,0 @@
return { "wakatime/vim-wakatime" }

View file

@ -19,12 +19,10 @@
# PROMPT='%{$fg_bold[green]%}%n@%m%{$reset_color%} %{$fg_bold[magenta]%}%2~$(git_prompt_info)%{$reset_color%}%(.) # PROMPT='%{$fg_bold[green]%}%n@%m%{$reset_color%} %{$fg_bold[magenta]%}%2~$(git_prompt_info)%{$reset_color%}%(.)
# %{$fg[green]%}$%{$reset_color%} ' # %{$fg[green]%}$%{$reset_color%} '
#PROMPT='%{$reset_color%}%{$fg_bold[blue]%}%2~%{$reset_color%}$(git_prompt_info)%(.) PROMPT='%{$fg_bold[green]%}%n@%m%{$reset_color%} %{$fg_bold[blue]%}%2~%{$reset_color%}$(git_prompt_info)%(.)
# %{$fg[green]%}$%{$reset_color%} ' %{$fg[green]%}$%{$reset_color%} '
# ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[magenta]%} " ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[magenta]%} "
# ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
#ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[blue]%} " #ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[blue]%} "
#ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" #ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
PS1="%B%{$fg[green]%}%n@%m:%{$fg[blue]%}%~ %{$reset_color%}%b"

View file

@ -1,3 +1,5 @@
export ZSH="/home/thomas/.oh-my-zsh" export ZSH="/home/thomas/.oh-my-zsh"
alias vim="nvim" alias vim="nvim"
alias cat="bat" alias cat="bat"
@ -15,8 +17,8 @@ alias ga="git add"
alias gc="git commit" alias gc="git commit"
alias syncmus="/home/thomas/repos/utilities/music_sync/update_music_library.sh" alias syncmus="/home/thomas/repos/utilities/music_sync/update_music_library.sh"
alias dc="docker compose" alias dc="docker compose"
alias neofetch="fastfetch"
alias dis-refresh='rm -rf ~/.local/share/kscreen/ && pkill kscreen'
# alias xhd="cd /run/media/thomas" # alias xhd="cd /run/media/thomas"
# alias cs-update="/home/thomas/repos/eolas/_scripts/auto_save.sh" # alias cs-update="/home/thomas/repos/eolas/_scripts/auto_save.sh"
# alias cs-query="/home/thomas/repos/eolas/_scripts/query.sh" # alias cs-query="/home/thomas/repos/eolas/_scripts/query.sh"
@ -25,9 +27,7 @@ alias dis-refresh='rm -rf ~/.local/share/kscreen/ && pkill kscreen'
# ZSH_THEME="thomas" # ZSH_THEME="thomas"
#ZSH_THEME="thomas" ZSH_THEME="thomas"
ZSH_THEME="robbyrussell"
plugins=(git npm fzf-tab zsh-autosuggestions zsh-syntax-highlighting) plugins=(git npm fzf-tab zsh-autosuggestions zsh-syntax-highlighting)
# Search against /home/thomas/repos/computer_science # Search against /home/thomas/repos/computer_science
@ -39,9 +39,6 @@ source ~/.env
export EDITOR='nvim' export EDITOR='nvim'
source $ZSH/oh-my-zsh.sh source $ZSH/oh-my-zsh.sh
alias ls="eza"
export NVM_DIR="$HOME/.nvm" export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
@ -51,11 +48,12 @@ export NVM_DIR="$HOME/.nvm"
#eval "$(pyenv init --path)" #eval "$(pyenv init --path)"
#export PATH="$HOME/.local/bin:$PATH" export PATH="$HOME/.local/bin:$PATH"
export PATH="$HOME/.local/bin:$HOME/.cargo/bin:$PATH"
# export OPENAI_API_KEY=${OPENAI_API_KEY} # export OPENAI_API_KEY=${OPENAI_API_KEY}
# #
if [ -e /home/thomas/.nix-profile/etc/profile.d/nix.sh ]; then . /home/thomas/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
## [Completion] ## [Completion]
## Completion scripts setup. Remove the following line to uninstall ## Completion scripts setup. Remove the following line to uninstall