Skip to content

Commit

Permalink
Made setting language to English Windows-specific. Dracula colorscheme.
Browse files Browse the repository at this point in the history
  • Loading branch information
kglundgren committed Oct 30, 2024
1 parent dc37bfb commit 35b2409
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ local is_windows = vim.loop.os_uname().sysname == 'Windows_NT'
-- vim.opt: Set list and map-style options.
-- vim.g: Set global editor variables.
-- vim.cmd: Executes an 'ex' command, like 'language en' or 'set path+=**'.
vim.cmd('language messages en') -- Set ui and message language to English.
-- vim.cmd('set showtabline=1') -- Show tab-line only if there are at least two tab pages.
vim.cmd('set nowrap') -- No line-wrapping on long lines.

-- Set contrast.
-- This configuration option should be placed before `colorscheme gruvbox-material`.
-- Available values: 'hard', 'medium'(default), 'soft'
vim.g.gruvbox_material_background = 'medium'
vim.g.gruvbox_material_disable_italic_comment = true
vim.cmd('colo gruvbox-material')


Expand All @@ -43,6 +43,7 @@ local opts = {
if is_windows then
opts.shell = 'pwsh'
opts.shellcmdflag = '-c'
vim.cmd('language messages en') -- Set ui and message language to English.
end

for k, v in pairs(opts) do
Expand Down
4 changes: 4 additions & 0 deletions src/nvim/lua/config/mini.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ now(function() require('mini.icons').setup() end)
-- Colorschemes.
now(function() add { source = 'folke/tokyonight.nvim' } end)
now(function() add { source = 'sainnhe/gruvbox-material' } end)
now(function() add { source = 'Mofiqul/dracula.nvim' } end)
later(function() require('dracula').setup {
italic_comment = false
} end)

-- fzf-lua
now(function() add { source = 'ibhagwan/fzf-lua' } end)
Expand Down

0 comments on commit 35b2409

Please sign in to comment.