Compare commits
2 Commits
a7c86e74b1
...
8b330e7f4a
Author | SHA1 | Date | |
---|---|---|---|
8b330e7f4a
|
|||
6d16c65e7b
|
4
init.lua
4
init.lua
@@ -68,8 +68,8 @@ require("lazy").setup({
|
||||
-- Leap
|
||||
require("plugins.leap"),
|
||||
|
||||
-- Ale
|
||||
require("plugins.ale"),
|
||||
-- Typst preview
|
||||
require("plugins.typst_preview"),
|
||||
})
|
||||
|
||||
-- Setup color scheme
|
||||
|
@@ -1,51 +1,51 @@
|
||||
{
|
||||
"LuaSnip": { "branch": "master", "commit": "6f4a04fd0c484a8c704955c137d3fe424fcce0fc" },
|
||||
"ale": { "branch": "master", "commit": "2f4a8665916e8bf44a30bbdc8a820692edd9f652" },
|
||||
"alpha-nvim": { "branch": "main", "commit": "de72250e054e5e691b9736ee30db72c65d560771" },
|
||||
"auto-session": { "branch": "main", "commit": "00334ee24b9a05001ad50221c8daffbeedaa0842" },
|
||||
"LuaSnip": { "branch": "master", "commit": "de10d8414235b0a8cabfeba60d07c24304e71f5c" },
|
||||
"alpha-nvim": { "branch": "main", "commit": "2b3cbcdd980cae1e022409289245053f62fb50f6" },
|
||||
"auto-session": { "branch": "main", "commit": "3b5d8947cf16ac582ef00443ede4cdd3dfa23af9" },
|
||||
"bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" },
|
||||
"catppuccin": { "branch": "main", "commit": "1bf070129c0b6f77cc23f6a2212dcdc868308c52" },
|
||||
"catppuccin": { "branch": "main", "commit": "30fa4d122d9b22ad8b2e0ab1b533c8c26c4dde86" },
|
||||
"cmp-buffer": { "branch": "main", "commit": "b74fab3656eea9de20a9b8116afa3cfc4ec09657" },
|
||||
"cmp-nvim-lsp": { "branch": "main", "commit": "a8912b88ce488f411177fc8aed358b04dc246d7b" },
|
||||
"cmp-path": { "branch": "main", "commit": "c6635aae33a50d6010bf1aa756ac2398a2d54c32" },
|
||||
"cmp-nvim-lsp": { "branch": "main", "commit": "bd5a7d6db125d4654b50eeae9f5217f24bb22fd3" },
|
||||
"cmp-path": { "branch": "main", "commit": "c642487086dbd9a93160e1679a1327be111cbc25" },
|
||||
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
|
||||
"fidget.nvim": { "branch": "main", "commit": "d9ba6b7bfe29b3119a610892af67602641da778e" },
|
||||
"fidget.nvim": { "branch": "main", "commit": "4d5858bd4c471c895060e1b9f3575f1551184dc5" },
|
||||
"friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" },
|
||||
"gitsigns.nvim": { "branch": "main", "commit": "1796c7cedfe7e5dd20096c5d7b8b753d8f8d22eb" },
|
||||
"hererocks": { "branch": "master", "commit": "c9c5444dea1e07e005484014a8231aa667be30b6" },
|
||||
"image.nvim": { "branch": "master", "commit": "4c51d6202628b3b51e368152c053c3fb5c5f76f2" },
|
||||
"gitsigns.nvim": { "branch": "main", "commit": "6e3c66548035e50db7bd8e360a29aec6620c3641" },
|
||||
"hererocks": { "branch": "master", "commit": "d2e2b7ab1ce5b6d4e517619746a810159f0e18db" },
|
||||
"image.nvim": { "branch": "master", "commit": "a8d6829ce8472a79df140bc494e75f1847f8861e" },
|
||||
"image_preview.nvim": { "branch": "main", "commit": "3f3f46210ba13bf82b1eb750b2d6d90eb211ee24" },
|
||||
"indent-blankline.nvim": { "branch": "master", "commit": "005b56001b2cb30bfa61b7986bc50657816ba4ba" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
|
||||
"leap.nvim": { "branch": "main", "commit": "2b68ddc0802bd295e64c9e2e75f18f755e50dbcc" },
|
||||
"lualine.nvim": { "branch": "master", "commit": "15884cee63a8c205334ab13ab1c891cd4d27101a" },
|
||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "1a31f824b9cd5bc6f342fc29e9a53b60d74af245" },
|
||||
"leap.nvim": { "branch": "main", "commit": "e9cb442c0614a7e8185608f639e10c54e53bb083" },
|
||||
"lualine.nvim": { "branch": "master", "commit": "b8c23159c0161f4b89196f74ee3a6d02cdc3a955" },
|
||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "5e085efe67fccb13372d54331d849219662a7e93" },
|
||||
"mason-null-ls.nvim": { "branch": "main", "commit": "de19726de7260c68d94691afb057fa73d3cc53e7" },
|
||||
"mason-tool-installer.nvim": { "branch": "main", "commit": "1255518cb067e038a4755f5cb3e980f79b6ab89c" },
|
||||
"mason.nvim": { "branch": "main", "commit": "fc98833b6da5de5a9c5b1446ac541577059555be" },
|
||||
"neo-tree.nvim": { "branch": "v3.x", "commit": "1ef260eb4f54515fe121a2267b477efb054d108a" },
|
||||
"mason-tool-installer.nvim": { "branch": "main", "commit": "517ef5994ef9d6b738322664d5fdd948f0fdeb46" },
|
||||
"mason.nvim": { "branch": "main", "commit": "7dc4facca9702f95353d5a1f87daf23d78e31c2a" },
|
||||
"neo-tree.nvim": { "branch": "v3.x", "commit": "f1deac7ecec88c28a250d890ba7bb35843e69cbd" },
|
||||
"none-ls-extras.nvim": { "branch": "main", "commit": "924fe88a9983c7d90dbb31fc4e3129a583ea0a90" },
|
||||
"none-ls.nvim": { "branch": "main", "commit": "7c493a266a6b1ed419f8a2e431651bc15b10df27" },
|
||||
"nui.nvim": { "branch": "main", "commit": "f535005e6ad1016383f24e39559833759453564e" },
|
||||
"nvim-autopairs": { "branch": "master", "commit": "4d74e75913832866aa7de35e4202463ddf6efd1b" },
|
||||
"none-ls.nvim": { "branch": "main", "commit": "53ec77181d96494b9dc9457110dd62dc623cc78d" },
|
||||
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
|
||||
"nvim-autopairs": { "branch": "master", "commit": "23320e75953ac82e559c610bec5a90d9c6dfa743" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "b5311ab3ed9c846b585c0c15b7559be131ec4be9" },
|
||||
"nvim-colorizer.lua": { "branch": "master", "commit": "a065833f35a3a7cc3ef137ac88b5381da2ba302e" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "1b801f68d09e70e59e6dd967b663b6d84ee3e87d" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "94ea4f436d2b59c80f02e293466c374584f03b8c" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "2c2b4eafce6cdd0cb165036faa17396eff18f847" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "f8474abbe3f0cf7cf2476331313b583207787148" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "f66cdfef5e84112045b9ebc3119fee9bddb3c687" },
|
||||
"nvim-window-picker": { "branch": "main", "commit": "6382540b2ae5de6c793d4aa2e3fe6dbb518505ec" },
|
||||
"peek.nvim": { "branch": "master", "commit": "5820d937d5414baea5f586dc2a3d912a74636e5b" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
|
||||
"rest.nvim": { "branch": "main", "commit": "2ded89dbda1fd3c1430685ffadf2df8beb28336d" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
||||
"rest.nvim": { "branch": "main", "commit": "de9726ab956e30202aafbcdea83c1d6bffe54227" },
|
||||
"telescope-fzf-native.nvim": { "branch": "main", "commit": "1f08ed60cafc8f6168b72b80be2b2ea149813e55" },
|
||||
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "a4ed82509cecc56df1c7138920a1aeaf246c0ac5" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "b4da76be54691e854d3e0e02c36b0245f945c2c7" },
|
||||
"todo-comments.nvim": { "branch": "main", "commit": "304a8d204ee787d2544d8bc23cd38d2f929e7cc5" },
|
||||
"toggleterm.nvim": { "branch": "main", "commit": "50ea089fc548917cc3cc16b46a8211833b9e3c7c" },
|
||||
"typst-preview.nvim": { "branch": "master", "commit": "dea4525d5420b7c32eebda7de15a6beb9d6574fa" },
|
||||
"vim-bbye": { "branch": "master", "commit": "25ef93ac5a87526111f43e5110675032dbcacf56" },
|
||||
"vim-fugitive": { "branch": "master", "commit": "4a745ea72fa93bb15dd077109afbb3d1809383f2" },
|
||||
"vim-rhubarb": { "branch": "master", "commit": "386daa2e9d98e23e27ad089afcbe5c5a903e488d" },
|
||||
"vim-fugitive": { "branch": "master", "commit": "61b51c09b7c9ce04e821f6cf76ea4f6f903e3cf4" },
|
||||
"vim-rhubarb": { "branch": "master", "commit": "5496d7c94581c4c9ad7430357449bb57fc59f501" },
|
||||
"vim-sleuth": { "branch": "master", "commit": "be69bff86754b1aa5adcbb527d7fcd1635a84080" },
|
||||
"vim-tmux-navigator": { "branch": "master", "commit": "33afa80db65113561dc53fa732b7f5e53d5ecfd0" },
|
||||
"vim-tmux-navigator": { "branch": "master", "commit": "c45243dc1f32ac6bcf6068e5300f3b2b237e576a" },
|
||||
"which-key.nvim": { "branch": "main", "commit": "370ec46f710e058c9c1646273e6b225acf47cbed" }
|
||||
}
|
||||
|
@@ -14,6 +14,9 @@ vim.keymap.set("n", "<C-s>", "<cmd>noautocmd w <CR>", opts)
|
||||
-- quit file
|
||||
vim.keymap.set("n", "<C-q>", "<cmd> q <CR>", opts)
|
||||
|
||||
-- activate spelling
|
||||
vim.keymap.set("n", "<leader>sp", ":set spell!<CR>")
|
||||
|
||||
-- delete single character without copying into register
|
||||
vim.keymap.set("n", "x", '"_x', opts)
|
||||
|
||||
@@ -36,12 +39,12 @@ vim.keymap.set("n", "l", ":vertical resize +2<CR>", opts)
|
||||
vim.keymap.set("n", "<Tab>", ":bnext<CR>", opts)
|
||||
vim.keymap.set("n", "<S-Tab>", ":bprevious<CR>", opts)
|
||||
vim.keymap.set("n", "<leader>q", ":bdelete!<CR>:bnext<CR>", opts) -- close buffer
|
||||
vim.keymap.set("n", "<leader>b", "<cmd> enew <CR>", opts) -- new buffer
|
||||
vim.keymap.set("n", "<leader>b", "<cmd> enew <CR>", opts) -- new buffer
|
||||
|
||||
-- Window management
|
||||
vim.keymap.set("n", "<leader>v", "<C-w>v", opts) -- split window vertically
|
||||
vim.keymap.set("n", "<leader>h", "<C-w>s", opts) -- split window horizontally
|
||||
vim.keymap.set("n", "<leader>se", "<C-w>=", opts) -- make split windows equal width & height
|
||||
vim.keymap.set("n", "<leader>v", "<C-w>v", opts) -- split window vertically
|
||||
vim.keymap.set("n", "<leader>h", "<C-w>s", opts) -- split window horizontally
|
||||
vim.keymap.set("n", "<leader>se", "<C-w>=", opts) -- make split windows equal width & height
|
||||
vim.keymap.set("n", "<leader>xs", ":close<CR>", opts) -- close current split window
|
||||
|
||||
-- Navigate between splits
|
||||
@@ -51,10 +54,10 @@ vim.keymap.set("n", "<C-Left>", ":wincmd h<CR>", opts)
|
||||
vim.keymap.set("n", "<C-Right>", ":wincmd l<CR>", opts)
|
||||
|
||||
-- Tabs
|
||||
vim.keymap.set("n", "<leader>to", ":tabnew<CR>", opts) -- open new tab
|
||||
vim.keymap.set("n", "<leader>to", ":tabnew<CR>", opts) -- open new tab
|
||||
vim.keymap.set("n", "<leader>tx", ":tabclose<CR>", opts) -- close current tab
|
||||
vim.keymap.set("n", "<leader>tn", ":tabn<CR>", opts) -- go to next tab
|
||||
vim.keymap.set("n", "<leader>tp", ":tabp<CR>", opts) -- go to previous tab
|
||||
vim.keymap.set("n", "<leader>tn", ":tabn<CR>", opts) -- go to next tab
|
||||
vim.keymap.set("n", "<leader>tp", ":tabp<CR>", opts) -- go to previous tab
|
||||
|
||||
-- Toggle line wrapping
|
||||
vim.keymap.set("n", "<leader>lw", "<cmd>set wrap!<CR>", opts)
|
||||
|
@@ -1,42 +1,43 @@
|
||||
vim.wo.number = true -- Make line numbers default (default: false)
|
||||
vim.o.clipboard = "unnamedplus" -- Sync clipboard between OS and Neovim. (default: '')
|
||||
vim.o.wrap = false -- Display lines as one long line (default: true)
|
||||
vim.o.linebreak = true -- Companion to wrap, don't split words (default: false)
|
||||
vim.o.mouse = "a" -- Enable mouse mode (default: '')
|
||||
vim.o.autoindent = true -- Copy indent from current line when starting new one (default: true)
|
||||
vim.o.ignorecase = true -- Case-insensitive searching UNLESS \C or capital in search (default: false)
|
||||
vim.o.smartcase = true -- Smart case (default: false)
|
||||
vim.o.shiftwidth = 4 -- The number of spaces inserted for each indentation (default: 8)
|
||||
vim.o.tabstop = 4 -- Insert n spaces for a tab (default: 8)
|
||||
vim.o.softtabstop = 4 -- Number of spaces that a tab counts for while performing editing operations (default: 0)
|
||||
vim.o.expandtab = true -- Convert tabs to spaces (default: false)
|
||||
vim.o.scrolloff = 4 -- Minimal number of screen lines to keep above and below the cursor (default: 0)
|
||||
vim.o.sidescrolloff = 8 -- Minimal number of screen columns either side of cursor if wrap is `false` (default: 0)
|
||||
vim.o.cursorline = false -- Highlight the current line (default: false)
|
||||
vim.o.splitbelow = true -- Force all horizontal splits to go below current window (default: false)
|
||||
vim.o.splitright = true -- Force all vertical splits to go to the right of current window (default: false)
|
||||
vim.o.hlsearch = false -- Set highlight on search (default: true)
|
||||
vim.o.showmode = false -- We don't need to see things like -- INSERT -- anymore (default: true)
|
||||
vim.opt.termguicolors = true -- Set termguicolors to enable highlight groups (default: false)
|
||||
vim.o.whichwrap = "bs<>[]hl" -- Which "horizontal" keys are allowed to travel to prev/next line (default: 'b,s')
|
||||
vim.o.numberwidth = 4 -- Set number column width to 2 {default 4} (default: 4)
|
||||
vim.o.swapfile = false -- Creates a swapfile (default: true)
|
||||
vim.o.smartindent = true -- Make indenting smarter again (default: false)
|
||||
vim.o.showtabline = 2 -- Always show tabs (default: 1)
|
||||
vim.o.backspace = "indent,eol,start" -- Allow backspace on (default: 'indent,eol,start')
|
||||
vim.o.pumheight = 10 -- Pop up menu height (default: 0)
|
||||
vim.o.conceallevel = 0 -- So that `` is visible in markdown files (default: 1)
|
||||
vim.wo.signcolumn = "yes" -- Keep signcolumn on by default (default: 'auto')
|
||||
vim.o.fileencoding = "utf-8" -- The encoding written to a file (default: 'utf-8')
|
||||
vim.o.cmdheight = 1 -- More space in the Neovim command line for displaying messages (default: 1)
|
||||
vim.o.breakindent = true -- Enable break indent (default: false)
|
||||
vim.o.updatetime = 250 -- Decrease update time (default: 4000)
|
||||
vim.o.timeoutlen = 300 -- Time to wait for a mapped sequence to complete (in milliseconds) (default: 1000)
|
||||
vim.o.backup = false -- Creates a backup file (default: false)
|
||||
vim.o.writebackup = false -- If a file is being edited by another program (or was written to file while editing with another program), it is not allowed to be edited (default: true)
|
||||
vim.o.undofile = true -- Save undo history (default: false)
|
||||
vim.o.completeopt = "menuone,noselect" -- Set completeopt to have a better completion experience (default: 'menu,preview')
|
||||
vim.opt.shortmess:append("c") -- Don't give |ins-completion-menu| messages (default: does not include 'c')
|
||||
vim.opt.iskeyword:append("-") -- Hyphenated words recognized by searches (default: does not include '-')
|
||||
vim.opt.formatoptions:remove({ "c", "r", "o" }) -- Don't insert the current comment leader automatically for auto-wrapping comments using 'textwidth', hitting <Enter> in insert mode, or hitting 'o' or 'O' in normal mode. (default: 'croql')
|
||||
vim.wo.number = true -- Make line numbers default (default: false)
|
||||
vim.o.clipboard = "unnamedplus" -- Sync clipboard between OS and Neovim. (default: '')
|
||||
vim.o.wrap = false -- Display lines as one long line (default: true)
|
||||
vim.o.linebreak = true -- Companion to wrap, don't split words (default: false)
|
||||
vim.o.mouse = "a" -- Enable mouse mode (default: '')
|
||||
vim.o.autoindent = true -- Copy indent from current line when starting new one (default: true)
|
||||
vim.o.ignorecase = true -- Case-insensitive searching UNLESS \C or capital in search (default: false)
|
||||
vim.o.smartcase = true -- Smart case (default: false)
|
||||
vim.o.shiftwidth = 4 -- The number of spaces inserted for each indentation (default: 8)
|
||||
vim.o.tabstop = 4 -- Insert n spaces for a tab (default: 8)
|
||||
vim.o.softtabstop = 4 -- Number of spaces that a tab counts for while performing editing operations (default: 0)
|
||||
vim.o.expandtab = true -- Convert tabs to spaces (default: false)
|
||||
vim.o.scrolloff = 4 -- Minimal number of screen lines to keep above and below the cursor (default: 0)
|
||||
vim.o.sidescrolloff = 8 -- Minimal number of screen columns either side of cursor if wrap is `false` (default: 0)
|
||||
vim.o.cursorline = false -- Highlight the current line (default: false)
|
||||
vim.o.splitbelow = true -- Force all horizontal splits to go below current window (default: false)
|
||||
vim.o.splitright = true -- Force all vertical splits to go to the right of current window (default: false)
|
||||
vim.o.hlsearch = false -- Set highlight on search (default: true)
|
||||
vim.o.showmode = false -- We don't need to see things like -- INSERT -- anymore (default: true)
|
||||
vim.opt.termguicolors = true -- Set termguicolors to enable highlight groups (default: false)
|
||||
vim.o.whichwrap = "bs<>[]hl" -- Which "horizontal" keys are allowed to travel to prev/next line (default: 'b,s')
|
||||
vim.o.numberwidth = 4 -- Set number column width to 2 {default 4} (default: 4)
|
||||
vim.o.swapfile = false -- Creates a swapfile (default: true)
|
||||
vim.o.smartindent = true -- Make indenting smarter again (default: false)
|
||||
vim.o.showtabline = 2 -- Always show tabs (default: 1)
|
||||
vim.o.backspace = "indent,eol,start" -- Allow backspace on (default: 'indent,eol,start')
|
||||
vim.o.pumheight = 10 -- Pop up menu height (default: 0)
|
||||
vim.o.conceallevel = 0 -- So that `` is visible in markdown files (default: 1)
|
||||
vim.wo.signcolumn = "yes" -- Keep signcolumn on by default (default: 'auto')
|
||||
vim.o.fileencoding = "utf-8" -- The encoding written to a file (default: 'utf-8')
|
||||
vim.o.cmdheight = 1 -- More space in the Neovim command line for displaying messages (default: 1)
|
||||
vim.o.breakindent = true -- Enable break indent (default: false)
|
||||
vim.o.updatetime = 250 -- Decrease update time (default: 4000)
|
||||
vim.o.timeoutlen = 300 -- Time to wait for a mapped sequence to complete (in milliseconds) (default: 1000)
|
||||
vim.o.backup = false -- Creates a backup file (default: false)
|
||||
vim.o.writebackup = false -- If a file is being edited by another program (or was written to file while editing with another program), it is not allowed to be edited (default: true)
|
||||
vim.o.undofile = true -- Save undo history (default: false)
|
||||
vim.o.completeopt =
|
||||
"menuone,noselect" -- Set completeopt to have a better completion experience (default: 'menu,preview')
|
||||
vim.opt.shortmess:append("c") -- Don't give |ins-completion-menu| messages (default: does not include 'c')
|
||||
vim.opt.iskeyword:append("-") -- Hyphenated words recognized by searches (default: does not include '-')
|
||||
vim.opt.formatoptions:remove({ "c", "r", "o" }) -- Don't insert the current comment leader automatically for auto-wrapping comments using 'textwidth', hitting <Enter> in insert mode, or hitting 'o' or 'O' in normal mode. (default: 'croql')
|
||||
vim.opt.runtimepath:remove("/usr/share/vim/vimfiles") -- Separate Vim plugins from Neovim in case Vim still in use (default: includes this path if Vim is installed)
|
||||
|
@@ -1,3 +0,0 @@
|
||||
return {
|
||||
"dense-analysis/ale",
|
||||
}
|
@@ -36,7 +36,7 @@ return {
|
||||
}
|
||||
|
||||
dashboard.section.buttons.val = {
|
||||
dashboard.button("<CR>", " Select Session", ":SessionSearch <CR>"),
|
||||
dashboard.button("<CR>", " Select Session", ":AutoSession search <CR>"),
|
||||
dashboard.button("<leader>ff", " Open file", ":Neotree float <CR>"),
|
||||
dashboard.button("<leader>fr", " Open recent files.", ":Telescope oldfiles <CR>"),
|
||||
}
|
||||
|
@@ -155,13 +155,13 @@ return {
|
||||
-- clangd = {},
|
||||
-- gopls = {},
|
||||
-- pyright = {},
|
||||
-- rust_analyzer = {},
|
||||
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
|
||||
--
|
||||
-- Some languages (like typescript) have entire language plugins that can be useful:
|
||||
-- https://github.com/pmizio/typescript-tools.nvim
|
||||
--
|
||||
-- But for many setups, the LSP (`tsserver`) will work just fine
|
||||
rust_analyzer = {},
|
||||
ts_ls = {}, -- tsserver is deprecated
|
||||
ruff = {},
|
||||
pylsp = {
|
||||
@@ -189,6 +189,7 @@ return {
|
||||
yamlls = {},
|
||||
clangd = {},
|
||||
ocamllsp = {},
|
||||
tinymist = {},
|
||||
|
||||
lua_ls = {
|
||||
-- cmd = {...},
|
||||
|
@@ -18,7 +18,8 @@ return {
|
||||
"shfmt", -- Shell formatter
|
||||
"checkmake", -- linter for Makefiles
|
||||
"ruff", -- Python linter and formatter
|
||||
"clangd",
|
||||
"clangd", -- c/cpp formatter and linter
|
||||
"ocamlformat", -- ocaml formatter
|
||||
},
|
||||
automatic_installation = true,
|
||||
})
|
||||
@@ -34,6 +35,25 @@ return {
|
||||
}),
|
||||
require("none-ls.formatting.ruff_format"),
|
||||
formatting.clang_format,
|
||||
formatting.ocamlformat,
|
||||
-- require("none-ls.formatting.ocamlformat").with({
|
||||
-- extra_args = {
|
||||
-- "--if-then-else",
|
||||
-- "vertical",
|
||||
-- "--break-cases",
|
||||
-- "fit-or-vertical",
|
||||
-- "--type-decl",
|
||||
-- "sparse",
|
||||
-- "--type-decl-indent",
|
||||
-- "4",
|
||||
-- "--function-indent",
|
||||
-- "4",
|
||||
-- "--match-indent",
|
||||
-- "4",
|
||||
-- "--let-binding-indent",
|
||||
-- "4",
|
||||
-- },
|
||||
-- }),
|
||||
}
|
||||
|
||||
local augroup = vim.api.nvim_create_augroup("LspFormatting", {})
|
||||
@@ -48,6 +68,7 @@ return {
|
||||
group = augroup,
|
||||
buffer = bufnr,
|
||||
callback = function()
|
||||
print("test")
|
||||
vim.lsp.buf.format({ async = false })
|
||||
end,
|
||||
})
|
||||
|
@@ -1,18 +1,14 @@
|
||||
return {
|
||||
"rmagatti/auto-session",
|
||||
config = function()
|
||||
require("auto-session").setup({
|
||||
auto_session_suppress_dirs = { "~/", "~/Projects", "~/Downloads", "/" },
|
||||
session_lens = {
|
||||
buftypes_to_ignore = {},
|
||||
load_on_setup = true,
|
||||
theme_conf = { border = true },
|
||||
previewer = false,
|
||||
},
|
||||
})
|
||||
|
||||
vim.keymap.set("n", "<Leader>ls", require("auto-session.session-lens").search_session, {
|
||||
noremap = true,
|
||||
})
|
||||
end,
|
||||
lazy = false,
|
||||
keys = {
|
||||
{ "<leader>ls", "<cmd>AutoSession search<CR>", desc = "Session search" },
|
||||
},
|
||||
---enables autocomplete for opts
|
||||
---@module "auto-session"
|
||||
---@type AutoSession.Config
|
||||
opts = {
|
||||
suppressed_dirs = { "~/", "~/Projects", "~/Downloads", "/" },
|
||||
-- log_level = 'debug',
|
||||
},
|
||||
}
|
||||
|
@@ -1,33 +1,34 @@
|
||||
return { -- Highlight, edit, and navigate code
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
build = ':TSUpdate',
|
||||
main = 'nvim-treesitter.configs', -- Sets main module to use for opts
|
||||
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
'bash',
|
||||
'c',
|
||||
'cpp',
|
||||
'python',
|
||||
'javascript',
|
||||
'html',
|
||||
'css'
|
||||
},
|
||||
-- Autoinstall languages that are not installed
|
||||
auto_install = true,
|
||||
highlight = {
|
||||
enable = true,
|
||||
-- Some languages depend on vim's regex highlighting system (such as Ruby) for indent rules.
|
||||
-- If you are experiencing weird indenting issues, add the language to
|
||||
-- the list of additional_vim_regex_highlighting and disabled languages for indent.
|
||||
additional_vim_regex_highlighting = { 'ruby' },
|
||||
},
|
||||
indent = { enable = true, disable = { 'ruby' } },
|
||||
},
|
||||
-- There are additional nvim-treesitter modules that you can use to interact
|
||||
-- with nvim-treesitter. You should go explore a few and see what interests you:
|
||||
--
|
||||
-- - Incremental selection: Included, see `:help nvim-treesitter-incremental-selection-mod`
|
||||
-- - Show your current context: https://github.com/nvim-treesitter/nvim-treesitter-context
|
||||
-- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
build = ":TSUpdate",
|
||||
main = "nvim-treesitter.configs", -- Sets main module to use for opts
|
||||
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"bash",
|
||||
"c",
|
||||
"cpp",
|
||||
"python",
|
||||
"javascript",
|
||||
"html",
|
||||
"css",
|
||||
"rust",
|
||||
},
|
||||
-- Autoinstall languages that are not installed
|
||||
auto_install = true,
|
||||
highlight = {
|
||||
enable = true,
|
||||
-- Some languages depend on vim's regex highlighting system (such as Ruby) for indent rules.
|
||||
-- If you are experiencing weird indenting issues, add the language to
|
||||
-- the list of additional_vim_regex_highlighting and disabled languages for indent.
|
||||
additional_vim_regex_highlighting = { "ruby" },
|
||||
},
|
||||
indent = { enable = true, disable = { "ruby" } },
|
||||
},
|
||||
-- There are additional nvim-treesitter modules that you can use to interact
|
||||
-- with nvim-treesitter. You should go explore a few and see what interests you:
|
||||
--
|
||||
-- - Incremental selection: Included, see `:help nvim-treesitter-incremental-selection-mod`
|
||||
-- - Show your current context: https://github.com/nvim-treesitter/nvim-treesitter-context
|
||||
-- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
|
||||
}
|
||||
|
8
lua/plugins/typst_preview.lua
Normal file
8
lua/plugins/typst_preview.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
return {
|
||||
"chomosuke/typst-preview.nvim",
|
||||
lazy = false, -- or ft = 'typst'
|
||||
version = "1.*",
|
||||
opts = {
|
||||
open_cmd = "chromium %s",
|
||||
}, -- lazy.nvim will implicitly calls `setup {}`
|
||||
}
|
Reference in New Issue
Block a user