Compare commits

...

2 Commits

Author SHA1 Message Date
3cc8447717 Add mapping for diagnostic popup 2024-09-28 01:06:52 +08:00
a66d3f9c73 Use lua gruvbox extension 2024-09-28 01:06:26 +08:00
3 changed files with 8 additions and 10 deletions

View File

@ -9,16 +9,7 @@ return require('packer').startup(function(use)
use 'junegunn/fzf.vim' use 'junegunn/fzf.vim'
use { use { "ellisonleao/gruvbox.nvim" }
'morhetz/gruvbox',
-- below adapted from old the old vimconfig commands:
-- set termguicolors
-- autocmd vimenter * ++nested colorscheme gruvbox
config = function()
vim.cmd('set termguicolors')
vim.cmd('autocmd vimenter * ++nested colorscheme gruvbox')
end
}
use ('nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' }) use ('nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' })

View File

@ -56,6 +56,8 @@ vim.keymap.set("n", "<leader>r", function() vim.cmd('lua require("harpoon.ui").n
vim.keymap.set("n", "<leader>s", function() vim.cmd('lua require("harpoon.ui").nav_file(3)') end) vim.keymap.set("n", "<leader>s", function() vim.cmd('lua require("harpoon.ui").nav_file(3)') end)
vim.keymap.set("n", "<leader>t", function() vim.cmd('lua require("harpoon.ui").nav_file(4)') end) vim.keymap.set("n", "<leader>t", function() vim.cmd('lua require("harpoon.ui").nav_file(4)') end)
-- Ltex
local function ltex_append_dictionary(word) local function ltex_append_dictionary(word)
if not word or word == "\n" or word == "" then if not word or word == "\n" or word == "" then
print("Word empty:", word) print("Word empty:", word)
@ -102,3 +104,6 @@ end
vim.keymap.set("v", "<leader>zz", ltex_selection_add_word) vim.keymap.set("v", "<leader>zz", ltex_selection_add_word)
vim.keymap.set("n", "<leader>zz", ltex_add_word) vim.keymap.set("n", "<leader>zz", ltex_add_word)
vim.keymap.set("n", "<leader>zd", function() vim.cmd.edit(LTEX_DICT) end) vim.keymap.set("n", "<leader>zd", function() vim.cmd.edit(LTEX_DICT) end)
-- Lsp stuff
vim.keymap.set("n", "<leader>e", vim.diagnostic.open_float)

View File

@ -2,6 +2,8 @@ vim.opt.number = true
vim.opt.relativenumber = true vim.opt.relativenumber = true
vim.cmd.syntax("enable") vim.cmd.syntax("enable")
vim.o.background = "dark"
vim.cmd([[colorscheme gruvbox]])
vim.opt.smartindent = true vim.opt.smartindent = true
vim.opt.tabstop = 4 vim.opt.tabstop = 4