summaryrefslogtreecommitdiff
path: root/artix/home/.config
diff options
context:
space:
mode:
authorNantha Sorubakanthan <nantha@mielota.com>2026-04-25 11:23:45 +0200
committerNantha Sorubakanthan <nantha@mielota.com>2026-04-25 11:23:45 +0200
commit0e2bfc7cdb675a74ec1fb65b59acc143198151f2 (patch)
treea0cb0e4a90fe0d68270a598bd1d302ae93aba923 /artix/home/.config
parent94a7dac83bd9b4a578227178896704804d2f7875 (diff)
use vim.pack
Diffstat (limited to 'artix/home/.config')
-rw-r--r--artix/home/.config/nvim/init.lua152
1 files changed, 56 insertions, 96 deletions
diff --git a/artix/home/.config/nvim/init.lua b/artix/home/.config/nvim/init.lua
index 71bedac..4474fd7 100644
--- a/artix/home/.config/nvim/init.lua
+++ b/artix/home/.config/nvim/init.lua
@@ -49,102 +49,62 @@ vim.cmd [[set spell]]
-- PLUGINS
-local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
-if not vim.uv.fs_stat(lazypath) then
- local lazyrepo = "https://github.com/folke/lazy.nvim.git"
- vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
-end
-vim.opt.rtp:prepend(lazypath)
-
-require("lazy").setup({
- spec = {
- "neovim/nvim-lspconfig",
- "ibhagwan/fzf-lua",
- "nvim-tree/nvim-web-devicons",
- "mfussenegger/nvim-jdtls",
- "mfussenegger/nvim-dap",
- {
- "folke/tokyonight.nvim",
- lazy = false,
- priority = 1000,
- opts = {
- style = "night",
- transparent = true,
- styles = {
- comments = { italic = true, bold = false },
- keywords = { italic = true, bold = false },
- functions = { italic = true, bold = false },
- variables = { italic = false, bold = false },
- sidebars = "dark",
- floats = "dark",
- },
- dim_inactive = false,
-
- on_colors = function(colors) end,
- on_highlights = function(highlights, colors) end,
- cache = true,
- },
- },
- { "lewis6991/gitsigns.nvim", opts = {} },
- { "windwp/nvim-autopairs", opts = {} },
- {
- "saghen/blink.cmp",
- opts = {
- keymap = { preset = 'enter' },
- fuzzy = { implementation = "rust" }
- }
- },
- {
- "stevearc/oil.nvim",
- opts = {
- default_file_explorer = true,
- lsp_file_methods = {
- enabled = true,
- timeout_ms = 1000,
- autosave_changes = true,
- },
- columns = {
- "permissions",
- "size",
- "icon",
- },
- float = {
- max_width = 0.7,
- max_height = 0.6,
- border = vim.o.winborder,
- },
- buf_options = {
- buflisted = false,
- bufhidden = "hide",
- },
- view_options = {
- show_hidden = true,
- },
- }
- },
- {
- "sphamba/smear-cursor.nvim",
- opts = {
- smear_insert_mode = true,
- stiffness = 0.7,
- trailing_stiffness = 0.3,
- stiffness_insert_mode = 0.7,
- trailing_stiffness_insert_mode = 0.7,
- damping = 0.67,
- damping_insert_mode = 0.67,
- distance_stop_animating = 0.4,
- },
- },
- {
- "nvim-neo-tree/neo-tree.nvim",
- opts = {},
- dependencies = {
- "nvim-lua/plenary.nvim",
- "MunifTanjim/nui.nvim",
- },
- lazy = false
- }
- }
+vim.pack.add({
+ { src = "https://github.com/neovim/nvim-lspconfig" },
+ { src = "https://github.com/ibhagwan/fzf-lua" },
+ { src = "https://github.com/nvim-tree/nvim-web-devicons" },
+ { src = "https://github.com/mfussenegger/nvim-jdtls" },
+ { src = "https://github.com/mfussenegger/nvim-dap" },
+ { src = "https://github.com/nvim-treesitter/nvim-treesitter" },
+ { src = "https://github.com/folke/tokyonight.nvim" },
+ { src = "https://github.com/lewis6991/gitsigns.nvim" },
+ { src = "https://github.com/windwp/nvim-autopairs" },
+ { src = "https://github.com/saghen/blink.cmp" },
+ { src = "https://github.com/saghen/blink.lib" },
+ { src = "https://github.com/stevearc/oil.nvim" },
+ { src = "https://github.com/sphamba/smear-cursor.nvim" },
+})
+
+require("gitsigns").setup({})
+require("nvim-autopairs").setup({})
+require("blink.cmp").setup({
+ keymap = { preset = 'enter' },
+ fuzzy = { implementation = "lua" }
+})
+require("oil").setup({
+ default_file_explorer = true,
+ lsp_file_methods = {
+ enabled = true,
+ timeout_ms = 1000,
+ autosave_changes = true,
+ },
+ columns = {
+ "permissions",
+ "size",
+ },
+ float = {
+ max_width = 0.7,
+ max_height = 0.6,
+ border = vim.o.winborder,
+ },
+ buf_options = {
+ buflisted = false,
+ bufhidden = "hide",
+ },
+ view_options = {
+ show_hidden = true,
+ },
+})
+
+require("smear_cursor").setup({
+ smear_insert_mode = true,
+ stiffness = 0.7,
+ trailing_stiffness = 0.3,
+ stiffness_insert_mode = 0.7,
+ trailing_stiffness_insert_mode = 0.7,
+ damping = 0.67,
+ damping_insert_mode = 0.67,
+ distance_stop_animating = 0.4,
})
vim.cmd [[colorscheme tokyonight-night]]