This commit is contained in:
Anders Holmberg 2024-03-19 15:11:00 +01:00
parent e01ca43e08
commit 0f70525cfa
2 changed files with 19 additions and 4 deletions

View File

@ -155,6 +155,8 @@ vim.opt.scrolloff = 10
vim.opt.hlsearch = true vim.opt.hlsearch = true
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>') vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
vim.g.python3_host_prog = '~/.pyenv/versions/3.12.0/bin/python3'
-- Diagnostic keymaps -- Diagnostic keymaps
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { desc = 'Go to previous [D]iagnostic message' }) vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { desc = 'Go to previous [D]iagnostic message' })
vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = 'Go to next [D]iagnostic message' }) vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = 'Go to next [D]iagnostic message' })
@ -535,9 +537,10 @@ require('lazy').setup {
-- - settings (table): Override the default settings passed when initializing the server. -- - settings (table): Override the default settings passed when initializing the server.
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/ -- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
local servers = { local servers = {
-- clangd = {}, clangd = {},
-- gopls = {}, -- gopls = {},
-- pyright = {}, pyright = {},
--mypy = {},
-- rust_analyzer = {}, -- rust_analyzer = {},
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
-- --
@ -736,21 +739,30 @@ require('lazy').setup {
end, end,
}, },
{
'rktjmp/lush.nvim',
},
{ -- You can easily change to a different colorscheme. { -- You can easily change to a different colorscheme.
-- Change the name of the colorscheme plugin below, and then -- Change the name of the colorscheme plugin below, and then
-- change the command in the config to whatever the name of that colorscheme is -- change the command in the config to whatever the name of that colorscheme is
-- --
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme` -- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`
'folke/tokyonight.nvim', -- 'folke/tokyonight.nvim',
-- 'cocopon/iceberg.vim', -- 'cocopon/iceberg.vim',
'mcchrish/zenbones.nvim',
lazy = false, -- make sure we load this during startup if it is your main colorscheme 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 priority = 1000, -- make sure to load this before all the other start plugins
config = function() config = function()
-- Load the colorscheme here -- Load the colorscheme here
vim.cmd.colorscheme 'tokyonight-night' -- vim.cmd.colorscheme 'tokyonight-night'
-- vim.cmd.colorscheme 'iceberg' -- vim.cmd.colorscheme 'iceberg'
vim.cmd.colorscheme 'neobones'
vim.opt.termguicolors = true
vim.opt.background = 'dark'
-- You can configure highlights by doing something like -- You can configure highlights by doing something like
vim.cmd.hi 'Comment gui=none' vim.cmd.hi 'Comment gui=none'
end, end,

View File

@ -15,4 +15,7 @@ return {
persist_mode = true, persist_mode = true,
}, },
}, },
{
'nvim-treesitter/nvim-treesitter-context'
},
} }