27 Commits

Author SHA1 Message Date
anth64 ca49391504 add json and c# indentation rules 2025-11-26 07:53:58 +01:00
anth64 caa148b6b0 fixendofline true 2025-11-25 20:11:51 +01:00
anth64 1a0b08d37d add csharp language server 2025-11-25 20:10:58 +01:00
anth64 6b5bb2ff3a use clangd over ccls 2025-08-07 22:38:31 -04:00
anth64 0001d8a14e added ccls 2025-08-07 20:41:59 -04:00
anth64 2a789eda7a add telescope fzf for native fuzzy find, very fast... 2025-05-28 18:45:18 +02:00
anth64 764dee5a9b add css language server 2025-05-09 12:23:45 +02:00
anth64 6e9d990167 added typescript language server 2025-05-09 12:17:25 +02:00
anth64 3de62d002d remove htmx language server 2025-05-08 09:12:32 +02:00
anth64 2d4e745910 added rules for javascript 2025-05-07 14:38:48 +02:00
anth64 ed22584915 added rules for html 2025-05-07 14:38:01 +02:00
anth64 764f2500f7 Don't force shell and add more lsps 2025-05-07 14:37:49 +02:00
anth64 2d1dd2bfec make command height default value to see status bar in command mode 2025-05-07 07:30:49 +02:00
anth64 1387429c47 added configuration for lua 2025-05-05 21:54:16 +02:00
anth64 9820d9a155 use after/ftplugin instead 2025-05-05 21:49:12 +02:00
anth64 464361b990 add lazydev for lua completion 2025-05-05 21:48:53 +02:00
anth64 94590db5c9 added auto formatting and .editorconfig 2025-05-04 18:19:13 +02:00
anth64 9e4735ee47 switched to blink for auto complete 2025-05-04 17:31:26 +02:00
anth64 5e6716e263 added cmp-buffer 2025-05-03 09:54:12 +02:00
anth64 b07f1aaf35 add jsonls 2025-05-01 12:04:29 +02:00
anth64 7a3800f2a0 added go and htmx langauge servers 2025-04-29 11:07:10 +02:00
anth64 655df38a9f make sure java follows standard guidelines for java formatting 2025-04-26 17:45:01 +02:00
anth64 d3f12ddb2d added format bind 2025-04-26 17:44:01 +02:00
anth64 98c1aba113 make moonfly transparent 2025-04-22 20:09:35 +02:00
anth64 c51e3b30e7 jdtls for both windows/linux and add diagnostic keybind 2025-04-16 22:57:29 +02:00
anth64 6c9250d1da Squashed commit of the following:
commit 7322bc0f73
Author: anth64 <anth64@protonmail.com>
Date:   Tue Apr 15 22:21:09 2025 +0200

    use lspconfig

commit 5577628a22
Author: anth64 <anth64@protonmail.com>
Date:   Tue Apr 15 20:08:14 2025 +0200

    reorderd lazy and config

commit 7f1a3b82da
Author: anth64 <anth64@protonmail.com>
Date:   Tue Apr 15 19:29:43 2025 +0200

    add colorschemes, default to moonfly

commit 466c8cf410
Author: anth64 <anth64@protonmail.com>
Date:   Tue Apr 15 18:51:56 2025 +0200

    make it work on windows as well

commit a9d9c2199d
Author: anth64 <anth64@protonmail.com>
Date:   Fri Apr 11 07:26:54 2025 +0200

    added jdtls and newline to end of files

commit 4db9e65e6f
Author: anth64 <anth64@protonmail.com>
Date:   Thu Apr 10 22:33:16 2025 +0200

    remove redundant remap of mapleader

commit bb0ad9af1b
Author: anth64 <anth64@protonmail.com>
Date:   Thu Apr 10 22:28:45 2025 +0200

    readd telescope and harpoon

commit 1a56e26e6b
Author: anth64 <anth64@protonmail.com>
Date:   Thu Apr 10 22:20:12 2025 +0200

    redid mapping, set and util, also readded nvim-cmp and cmp-nvim-lsp

commit 690e575c03
Author: anth64 <anth64@protonmail.com>
Date:   Wed Apr 9 23:23:51 2025 +0200

    make sure that colorscheme is not touched

commit 0ab0b593f2
Author: anth64 <anth64@protonmail.com>
Date:   Wed Apr 9 22:56:58 2025 +0200

    add lazy.nvim and lualine plugin

commit a8dd286e39
Author: anth64 <anth64@protonmail.com>
Date:   Wed Apr 9 07:59:00 2025 +0200

    initial configuration
2025-04-16 07:41:42 +02:00
anth64 b7e3d43782 make sure that it looks in the right dir on windows. 2025-04-15 13:37:52 +02:00
15 changed files with 149 additions and 79 deletions
+3
View File
@@ -0,0 +1,3 @@
vim.opt_local.expandtab = true
vim.opt_local.shiftwidth = 4
vim.opt_local.tabstop = 4
+3
View File
@@ -0,0 +1,3 @@
vim.opt_local.expandtab = true
vim.opt_local.shiftwidth = 2
vim.opt_local.tabstop = 2
+11
View File
@@ -0,0 +1,11 @@
vim.opt_local.expandtab = true
vim.opt_local.shiftwidth = 4
vim.opt_local.tabstop = 4
local home = os.getenv("HOME") or os.getenv("USERPROFILE")
local config = {
cmd = { home .. '/.local/share/java/jdtls/bin/jdtls' },
root_dir = vim.fs.dirname(vim.fs.find({ 'gradlew', '.git', 'mvnw' }, { upward = true })[1]),
}
require('jdtls').start_or_attach(config)
+3
View File
@@ -0,0 +1,3 @@
vim.opt_local.expandtab = true
vim.opt_local.shiftwidth = 2
vim.opt_local.tabstop = 2
+3
View File
@@ -0,0 +1,3 @@
vim.opt_local.expandtab = true
vim.opt_local.shiftwidth = 4
vim.opt_local.tabstop = 4
+3
View File
@@ -0,0 +1,3 @@
vim.opt_local.expandtab = true
vim.opt_local.shiftwidth = 2
vim.opt_local.tabstop = 2
-6
View File
@@ -1,6 +0,0 @@
local config = {
cmd = { os.getenv('HOME') .. '/.local/share/java/jdtls/bin/jdtls' },
root_dir = vim.fs.dirname(vim.fs.find({ 'gradlew', '.git', 'mvnw' }, { upward = true })[1]),
}
require('jdtls').start_or_attach(config)
+15 -12
View File
@@ -2,17 +2,20 @@ require("config.lazy")
require("config.set")
require("config.remap")
vim.api.nvim_create_autocmd('LspAttach', {
callback = function(ev)
local client = vim.lsp.get_client_by_id(ev.data.client_id)
if client:supports_method('textDocument/completion') then
vim.lsp.completion.enable(true, client.id, ev.buf, { autotrigger = true })
end
end,
vim.cmd("set completeopt+=noselect")
vim.lsp.enable({
'basedpyright',
'clangd',
'csharp_ls',
'cssls',
'eslint',
'gopls',
'html',
'jsonls',
'lua_ls',
'ts_ls',
'yamlls',
})
vim.lsp.enable({'basedpyright', 'lua_ls', 'yamlls'})
vim.cmd("set completeopt+=noselect")
vim.o.winborder='rounded'
vim.o.winborder = 'rounded'
-1
View File
@@ -31,4 +31,3 @@ require("lazy").setup({
-- automatically check for plugin updates
checker = { enabled = true },
})
-1
View File
@@ -1,2 +1 @@
vim.keymap.set("n", "<leader>pv", vim.cmd.Ex)
+2 -2
View File
@@ -1,7 +1,6 @@
vim.opt.shell = "zsh"
vim.opt.fileformat = "unix"
vim.opt.fileformats = "unix"
vim.opt.cmdheight = 0
vim.opt.fixendofline = true
vim.opt.guicursor = ""
vim.opt.mouse = ""
@@ -32,3 +31,4 @@ vim.g.c_syntax_for_h = 1
vim.cmd.colorscheme("moonfly")
vim.keymap.set('n', '<leader>d', vim.diagnostic.open_float, { noremap = true, silent = true })
+13
View File
@@ -0,0 +1,13 @@
return {
'saghen/blink.cmp',
dependencies = { 'rafamadriz/friendly-snippets' },
version = '1.*',
opts = {
keymap = { preset = 'default' },
appearance = {
nerd_font_variant = 'mono'
},
signature = { enabled = true }
},
}
+33 -4
View File
@@ -1,8 +1,37 @@
return {
{ "neovim/nvim-lspconfig" },
{
"neovim/nvim-lspconfig",
dependencies = {
"saghen/blink.cmp"
},
config = function()
vim.api.nvim_create_autocmd('LspAttach', {
group = vim.api.nvim_create_augroup('my.lsp', {}),
callback = function(args)
local client = assert(vim.lsp.get_client_by_id(args.data.client_id))
if not client then return end
if client:supports_method('textDocument/formatting') then
vim.api.nvim_create_autocmd('BufWritePre', {
group = vim.api.nvim_create_augroup('my.lsp', { clear = false }),
buffer = args.buf,
callback = function()
vim.lsp.buf.format({ bufnr = args.buf, id = client.id, timeout_ms = 1000 })
end,
})
end
end,
})
end
},
{
"folke/lazydev.nvim",
ft = "lua",
opts = {
library = {
{ path = "${3rd}/luv/library", words = { "vim%.uv" } },
},
},
},
{ "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" },
{ "hrsh7th/nvim-cmp" },
{ "hrsh7th/cmp-nvim-lsp" },
{ "mfussenegger/nvim-jdtls" } -- jdtls bindings for neovim
}
+4 -2
View File
@@ -13,7 +13,10 @@ return {
},
{
"nvim-telescope/telescope.nvim",
dependencies = {"nvim-lua/plenary.nvim"},
dependencies = {
"nvim-lua/plenary.nvim",
{ "nvim-telescope/telescope-fzf-native.nvim", build = "make" }
},
config = function()
local builtin = require('telescope.builtin')
vim.keymap.set('n', '<leader>pf', builtin.find_files, {})
@@ -39,4 +42,3 @@ return {
end
}
}
+7 -2
View File
@@ -7,8 +7,13 @@ return {
require("lualine").setup()
end,
},
{ "bluz71/vim-moonfly-colors", lazy = false },
{
"bluz71/vim-moonfly-colors",
lazy = false,
config = function()
vim.g.moonflyTransparent = true
end,
},
{ "EdenEast/nightfox.nvim", lazy = false },
{ "oxfist/night-owl.nvim", lazy = false },
}