Skip to content

Commit 2685af1

Browse files
authored
Fix typos and update configuration settings
1 parent 59aefde commit 2685af1

1 file changed

Lines changed: 18 additions & 20 deletions

File tree

init.lua

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ What is Kickstart?
4343
4444
Kickstart Guide:
4545
46-
TODO: The very first thing you should do is to run the command `:Tutor` in Neovim.
46+
TODO: The very first thing you should do is to run the command `:Tutor` in Neovim .
4747
4848
If you don't know what this means, type the following:
4949
- <escape key>
@@ -69,19 +69,6 @@ Kickstart Guide:
6969
I have left several `:help X` comments throughout the init.lua
7070
These are hints about where to find more information about the relevant settings,
7171
plugins or Neovim features used in Kickstart.
72-
73-
NOTE: Look for lines like this
74-
75-
Throughout the file. These are for you, the reader, to help you understand what is happening.
76-
Feel free to delete them once you know what you're doing, but they should serve as a guide
77-
for when you are first encountering a few different constructs in your Neovim config.
78-
79-
If you experience any errors while trying to install kickstart, run `:checkhealth` for more info.
80-
81-
I hope you enjoy your Neovim journey,
82-
- TJ
83-
84-
P.S. You can delete this when you're done too. It's your config now! :)
8572
--]]
8673

8774
-- Set <space> as the leader key
@@ -91,7 +78,7 @@ vim.g.mapleader = ' '
9178
vim.g.maplocalleader = ' '
9279

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

9683
-- [[ Setting options ]]
9784
-- See `:help vim.o`
@@ -159,7 +146,7 @@ vim.o.inccommand = 'split'
159146
vim.o.cursorline = true
160147

161148
-- Minimal number of screen lines to keep above and below the cursor.
162-
vim.o.scrolloff = 10
149+
vim.o.scrolloff = 2
163150

164151
-- if performing an operation that would fail due to unsaved changes in the buffer (like `:q`),
165152
-- instead raise a dialog asking if you wish to save the current file(s)
@@ -674,6 +661,7 @@ require('lazy').setup({
674661
-- clangd = {},
675662
-- gopls = {},
676663
-- pyright = {},
664+
codebook = {},
677665
-- rust_analyzer = {},
678666
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
679667
--
@@ -690,6 +678,14 @@ require('lazy').setup({
690678
-- capabilities = {},
691679
settings = {
692680
Lua = {
681+
workspace = {
682+
checkThirdParty = false,
683+
library = {
684+
'${3rd}/luv/library',
685+
unpack(vim.api.nvim_get_runtime_file('', true)),
686+
vim.api.nvim_get_proc,
687+
},
688+
},
693689
completion = {
694690
callSnippet = 'Replace',
695691
},
@@ -768,6 +764,8 @@ require('lazy').setup({
768764
end,
769765
formatters_by_ft = {
770766
lua = { 'stylua' },
767+
cs = { 'clang-format' },
768+
771769
-- Conform can also run multiple formatters sequentially
772770
-- python = { "isort", "black" },
773771
--
@@ -928,7 +926,7 @@ require('lazy').setup({
928926

929927
-- You can configure sections in the statusline by overriding their
930928
-- default behavior. For example, here we set the section for
931-
-- cursor location to LINE:COLUMN
929+
-- cursor location to LINE:COLUM N
932930
---@diagnostic disable-next-line: duplicate-set-field
933931
statusline.section_location = function()
934932
return '%2l:%-2v'
@@ -974,10 +972,10 @@ require('lazy').setup({
974972
-- Uncomment any of the lines below to enable them (you will need to restart nvim).
975973
--
976974
-- require 'kickstart.plugins.debug',
977-
-- require 'kickstart.plugins.indent_line',
975+
require 'kickstart.plugins.indent_line',
978976
-- require 'kickstart.plugins.lint',
979977
-- require 'kickstart.plugins.autopairs',
980-
-- require 'kickstart.plugins.neo-tree',
978+
require 'kickstart.plugins.neo-tree',
981979
-- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
982980

983981
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
@@ -1013,4 +1011,4 @@ require('lazy').setup({
10131011
})
10141012

10151013
-- The line beneath this is called `modeline`. See `:help modeline`
1016-
-- vim: ts=2 sts=2 sw=2 et
1014+
-

0 commit comments

Comments
 (0)