Skip to content

Commit b46e150

Browse files
author
Francisco Espino
committed
initial custom config
1 parent 4120893 commit b46e150

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

init.lua

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ P.S. You can delete this when you're done too. It's your config now! :)
9090
vim.g.mapleader = ' '
9191
vim.g.maplocalleader = ' '
9292

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

9696
-- [[ Setting options ]]
9797
-- See `:help vim.opt`
@@ -100,9 +100,10 @@ vim.g.have_nerd_font = false
100100

101101
-- Make line numbers default
102102
vim.opt.number = true
103+
103104
-- You can also add relative line numbers, to help with jumping.
104105
-- Experiment for yourself to see if you like it!
105-
-- vim.opt.relativenumber = true
106+
vim.opt.relativenumber = true
106107

107108
-- Enable mouse mode, can be useful for resizing splits for example!
108109
vim.opt.mouse = 'a'
@@ -155,7 +156,7 @@ vim.opt.inccommand = 'split'
155156
vim.opt.cursorline = true
156157

157158
-- Minimal number of screen lines to keep above and below the cursor.
158-
vim.opt.scrolloff = 10
159+
vim.opt.scrolloff = 15
159160

160161
-- [[ Basic Keymaps ]]
161162
-- See `:help vim.keymap.set()`
@@ -190,6 +191,9 @@ vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right win
190191
vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
191192
vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
192193

194+
-- Exit insert mode with jk
195+
vim.keymap.set('i', 'jk', '<Esc>', { desc = 'Exit insert mode with jk' })
196+
193197
-- [[ Basic Autocommands ]]
194198
-- See `:help lua-guide-autocommands`
195199

@@ -607,17 +611,16 @@ require('lazy').setup({
607611
local servers = {
608612
-- clangd = {},
609613
-- gopls = {},
610-
-- pyright = {},
614+
pyright = {},
611615
-- rust_analyzer = {},
612616
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
613617
--
614618
-- Some languages (like typescript) have entire language plugins that can be useful:
615619
-- https://github.com/pmizio/typescript-tools.nvim
616620
--
617621
-- But for many setups, the LSP (`ts_ls`) will work just fine
618-
-- ts_ls = {},
622+
ts_ls = {},
619623
--
620-
621624
lua_ls = {
622625
-- cmd = {...},
623626
-- filetypes = { ...},
@@ -700,10 +703,10 @@ require('lazy').setup({
700703
formatters_by_ft = {
701704
lua = { 'stylua' },
702705
-- Conform can also run multiple formatters sequentially
703-
-- python = { "isort", "black" },
706+
python = { 'isort', 'black' },
704707
--
705708
-- You can use 'stop_after_first' to run the first available formatter from the list
706-
-- javascript = { "prettierd", "prettier", stop_after_first = true },
709+
javascript = { 'prettierd', 'prettier', stop_after_first = true },
707710
},
708711
},
709712
},
@@ -918,7 +921,9 @@ require('lazy').setup({
918921
-- Uncomment any of the lines below to enable them (you will need to restart nvim).
919922
--
920923
-- require 'kickstart.plugins.debug',
921-
-- require 'kickstart.plugins.indent_line',
924+
925+
require 'kickstart.plugins.indent_line',
926+
922927
-- require 'kickstart.plugins.lint',
923928
-- require 'kickstart.plugins.autopairs',
924929
-- require 'kickstart.plugins.neo-tree',

0 commit comments

Comments
 (0)