Skip to content

Commit 7ba7c63

Browse files
author
Test User
committed
setup fold, install rust, enable number, setup nerd fonts, lemonade projects shortcut
1 parent 6ba2408 commit 7ba7c63

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

init.lua

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,19 +90,23 @@ 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+
vim.wo.foldmethod = 'expr'
94+
vim.wo.foldexpr = 'v:lua.vim.treesitter.foldexpr()'
95+
vim.wo.foldenable = false
96+
9397
-- Set to true if you have a Nerd Font installed and selected in the terminal
94-
vim.g.have_nerd_font = false
98+
vim.g.have_nerd_font = true
9599

96100
-- [[ Setting options ]]
97101
-- See `:help vim.o`
98102
-- NOTE: You can change these options as you wish!
99103
-- For more options, you can see `:help option-list`
100104

101105
-- Make line numbers default
102-
vim.o.number = true
106+
-- vim.o.number = true
103107
-- You can also add relative line numbers, to help with jumping.
104108
-- Experiment for yourself to see if you like it!
105-
-- vim.o.relativenumber = true
109+
vim.o.relativenumber = true
106110

107111
-- Enable mouse mode, can be useful for resizing splits for example!
108112
vim.o.mouse = 'a'
@@ -459,6 +463,11 @@ require('lazy').setup({
459463
vim.keymap.set('n', '<leader>sn', function()
460464
builtin.find_files { cwd = vim.fn.stdpath 'config' }
461465
end, { desc = '[S]earch [N]eovim files' })
466+
467+
-- TODO: open project, and move to a dedicated folder with all Lemonade related setups
468+
vim.keymap.set('n', '<leader>sl', function()
469+
builtin.find_files { cwd = '~/Lemonade', find_command = { 'fd', '--type', 'd', '--max-depth', '1' } }
470+
end, { desc = '[S]earch [L]emonade projects' })
462471
end,
463472
},
464473

@@ -674,7 +683,7 @@ require('lazy').setup({
674683
-- clangd = {},
675684
-- gopls = {},
676685
-- pyright = {},
677-
-- rust_analyzer = {},
686+
rust_analyzer = {},
678687
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
679688
--
680689
-- Some languages (like typescript) have entire language plugins that can be useful:
@@ -944,7 +953,7 @@ require('lazy').setup({
944953
main = 'nvim-treesitter.configs', -- Sets main module to use for opts
945954
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
946955
opts = {
947-
ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc' },
956+
ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc', 'rust', 'toml' },
948957
-- Autoinstall languages that are not installed
949958
auto_install = true,
950959
highlight = {
@@ -976,7 +985,7 @@ require('lazy').setup({
976985
-- require 'kickstart.plugins.debug',
977986
-- require 'kickstart.plugins.indent_line',
978987
-- require 'kickstart.plugins.lint',
979-
-- require 'kickstart.plugins.autopairs',
988+
require 'kickstart.plugins.autopairs',
980989
-- require 'kickstart.plugins.neo-tree',
981990
-- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
982991

0 commit comments

Comments
 (0)