2023-10-01 23:39:11 +00:00
|
|
|
diff --git a/init.lua b/init.lua
|
2023-11-10 15:07:53 +00:00
|
|
|
index 748e7f8..47e327a 100644
|
2023-10-01 23:39:11 +00:00
|
|
|
--- a/init.lua
|
|
|
|
+++ b/init.lua
|
2023-11-10 15:07:53 +00:00
|
|
|
@@ -229,7 +229,7 @@ require('lazy').setup({
|
2023-10-01 23:39:11 +00:00
|
|
|
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
|
|
|
|
--
|
|
|
|
-- For additional information see: https://github.com/folke/lazy.nvim#-structuring-your-plugins
|
|
|
|
- -- { import = 'custom.plugins' },
|
|
|
|
+ { import = 'custom.plugins' },
|
|
|
|
}, {})
|
|
|
|
|
|
|
|
-- [[ Setting options ]]
|
2023-11-10 15:07:53 +00:00
|
|
|
@@ -239,11 +239,12 @@ require('lazy').setup({
|
2023-10-01 23:39:11 +00:00
|
|
|
-- Set highlight on search
|
|
|
|
vim.o.hlsearch = false
|
|
|
|
|
|
|
|
--- Make line numbers default
|
|
|
|
+-- Make relative line numbers default
|
|
|
|
vim.wo.number = true
|
|
|
|
+vim.wo.relativenumber = true
|
|
|
|
|
|
|
|
--- Enable mouse mode
|
|
|
|
-vim.o.mouse = 'a'
|
|
|
|
+-- Disable mouse mode
|
|
|
|
+vim.o.mouse = ''
|
|
|
|
|
|
|
|
-- Sync clipboard between OS and Neovim.
|
|
|
|
-- Remove this option if you want your OS clipboard to remain independent.
|
2023-11-10 15:07:53 +00:00
|
|
|
@@ -273,6 +274,14 @@ vim.o.completeopt = 'menuone,noselect'
|
2023-10-01 23:39:11 +00:00
|
|
|
-- NOTE: You should make sure your terminal supports this
|
|
|
|
vim.o.termguicolors = true
|
|
|
|
|
|
|
|
+-- Set foldmethod
|
|
|
|
+-- See `:help foldmethod`
|
|
|
|
+vim.opt.foldmethod = 'expr'
|
|
|
|
+vim.opt.foldexpr = 'v:lua.vim.treesitter.foldexpr()'
|
|
|
|
+vim.opt.foldnestmax = 5
|
|
|
|
+vim.opt.foldlevel = 1
|
|
|
|
+vim.opt.foldenable = false
|
|
|
|
+
|
|
|
|
-- [[ Basic Keymaps ]]
|
|
|
|
|
|
|
|
-- Keymaps for better default experience
|
2023-11-10 15:07:53 +00:00
|
|
|
@@ -378,11 +387,29 @@ vim.keymap.set('n', '<leader>sr', require('telescope.builtin').resume, { desc =
|
2023-10-15 19:46:17 +00:00
|
|
|
vim.defer_fn(function()
|
|
|
|
require('nvim-treesitter.configs').setup {
|
|
|
|
-- Add languages to be installed here that you want installed for treesitter
|
|
|
|
- ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'javascript', 'typescript', 'vimdoc', 'vim', 'bash' },
|
2023-10-01 23:39:11 +00:00
|
|
|
-
|
2023-10-15 19:46:17 +00:00
|
|
|
+ ensure_installed = {
|
|
|
|
+ 'css',
|
|
|
|
+ 'dockerfile',
|
|
|
|
+ 'eex',
|
|
|
|
+ 'elixir',
|
|
|
|
+ 'erlang',
|
|
|
|
+ 'go',
|
|
|
|
+ 'heex',
|
|
|
|
+ 'html',
|
|
|
|
+ 'http',
|
|
|
|
+ 'javascript',
|
|
|
|
+ 'json',
|
|
|
|
+ 'lua',
|
|
|
|
+ 'markdown',
|
|
|
|
+ 'python',
|
|
|
|
+ 'sql',
|
|
|
|
+ 'tsx',
|
|
|
|
+ 'typescript',
|
|
|
|
+ 'vim',
|
|
|
|
+ 'vimdoc'
|
|
|
|
+ },
|
|
|
|
-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
|
|
|
|
auto_install = false,
|
2023-10-01 23:39:11 +00:00
|
|
|
-
|
2023-10-15 19:46:17 +00:00
|
|
|
highlight = { enable = true },
|
|
|
|
indent = { enable = true },
|
|
|
|
incremental_selection = {
|
2023-11-10 15:07:53 +00:00
|
|
|
@@ -511,19 +538,24 @@ require('mason-lspconfig').setup()
|
2023-10-01 23:39:11 +00:00
|
|
|
-- If you want to override the default filetypes that your language server will attach to you can
|
|
|
|
-- define the property 'filetypes' to the map in question.
|
|
|
|
local servers = {
|
|
|
|
- -- clangd = {},
|
|
|
|
- -- gopls = {},
|
|
|
|
- -- pyright = {},
|
|
|
|
- -- rust_analyzer = {},
|
|
|
|
- -- tsserver = {},
|
|
|
|
- -- html = { filetypes = { 'html', 'twig', 'hbs'} },
|
|
|
|
-
|
|
|
|
+ elixirls = {
|
|
|
|
+ elixirLS = {
|
|
|
|
+ dialyzerEnabled = true,
|
|
|
|
+ dialyzerFormat = "dialyxir_long",
|
|
|
|
+ fetchDeps = false,
|
|
|
|
+ mixEnv = "test"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ gopls = {},
|
|
|
|
+ html = { filetypes = { 'html', 'twig', 'hbs'} },
|
|
|
|
lua_ls = {
|
|
|
|
Lua = {
|
|
|
|
workspace = { checkThirdParty = false },
|
|
|
|
telemetry = { enable = false },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
+ pyright = {},
|
|
|
|
+ tsserver = {},
|
|
|
|
}
|
|
|
|
|
|
|
|
-- Setup neovim lua configuration
|