Skip to content

Commit 1fcda61

Browse files
committed
ser5-arch config
js rel line nums warnings for arrow key press
1 parent 1279278 commit 1fcda61

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed

init.lua

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ vim.g.mapleader = ' '
9191
vim.g.maplocalleader = ' '
9292

9393
-- Set to true if you have a Nerd Font installed and selected in the terminal
94-
vim.g.have_nerd_font = false
94+
vim.g.have_nerd_font = true
9595

9696
-- [[ Setting options ]]
9797
-- See `:help vim.opt`
@@ -102,7 +102,7 @@ vim.g.have_nerd_font = false
102102
vim.opt.number = true
103103
-- You can also add relative line numbers, to help with jumping.
104104
-- Experiment for yourself to see if you like it!
105-
-- vim.opt.relativenumber = true
105+
vim.opt.relativenumber = true
106106

107107
-- Enable mouse mode, can be useful for resizing splits for example!
108108
vim.opt.mouse = 'a'
@@ -176,10 +176,10 @@ vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagn
176176
vim.keymap.set('t', '<Esc><Esc>', '<C-\\><C-n>', { desc = 'Exit terminal mode' })
177177

178178
-- TIP: Disable arrow keys in normal mode
179-
-- vim.keymap.set('n', '<left>', '<cmd>echo "Use h to move!!"<CR>')
180-
-- vim.keymap.set('n', '<right>', '<cmd>echo "Use l to move!!"<CR>')
181-
-- vim.keymap.set('n', '<up>', '<cmd>echo "Use k to move!!"<CR>')
182-
-- vim.keymap.set('n', '<down>', '<cmd>echo "Use j to move!!"<CR>')
179+
vim.keymap.set('n', '<left>', '<cmd>echo "Use h to move!!"<CR>')
180+
vim.keymap.set('n', '<right>', '<cmd>echo "Use l to move!!"<CR>')
181+
vim.keymap.set('n', '<up>', '<cmd>echo "Use k to move!!"<CR>')
182+
vim.keymap.set('n', '<down>', '<cmd>echo "Use j to move!!"<CR>')
183183

184184
-- Keybinds to make split navigation easier.
185185
-- Use CTRL+<hjkl> to switch between windows
@@ -569,10 +569,10 @@ require('lazy').setup({
569569
-- - settings (table): Override the default settings passed when initializing the server.
570570
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
571571
local servers = {
572-
-- clangd = {},
573-
-- gopls = {},
574-
-- pyright = {},
575-
-- rust_analyzer = {},
572+
clangd = {},
573+
gopls = {},
574+
pyright = {},
575+
rust_analyzer = {},
576576
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
577577
--
578578
-- Some languages (like typescript) have entire language plugins that can be useful:
@@ -658,10 +658,10 @@ require('lazy').setup({
658658
formatters_by_ft = {
659659
lua = { 'stylua' },
660660
-- Conform can also run multiple formatters sequentially
661-
-- python = { "isort", "black" },
661+
python = { 'isort', 'black' },
662662
--
663663
-- You can use 'stop_after_first' to run the first available formatter from the list
664-
-- javascript = { "prettierd", "prettier", stop_after_first = true },
664+
-- javascript = { 'prettierd', 'prettier', stop_after_first = true },
665665
},
666666
},
667667
},
@@ -800,11 +800,18 @@ require('lazy').setup({
800800
-- Load the colorscheme here.
801801
-- Like many other themes, this one has different styles, and you could load
802802
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
803-
vim.cmd.colorscheme 'tokyonight-night'
803+
vim.cmd.colorscheme 'tokyonight'
804804

805805
-- You can configure highlights by doing something like:
806806
vim.cmd.hi 'Comment gui=none'
807807
end,
808+
opts = {
809+
transparent = true,
810+
styles = {
811+
sidebars = 'transparent',
812+
floats = 'transparent',
813+
},
814+
},
808815
},
809816

810817
-- Highlight todo, notes, etc in comments

0 commit comments

Comments
 (0)