Updated config

This commit is contained in:
Eduard Urbach 2023-07-29 19:21:24 +02:00
parent 4db1b72949
commit 7e2865d33b
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0
8 changed files with 10 additions and 76 deletions

View File

@ -9,4 +9,5 @@ alias gt = go test
alias gd = git diff
alias gp = git pull
alias gs = git status
alias hex = hexdump -C
alias home = /usr/bin/git $"--git-dir=($env.HOME)/.home/" $"--work-tree=($env.HOME)"

8
.config/nvim/.gitignore vendored Normal file
View File

@ -0,0 +1,8 @@
tt.*
.tests
doc/tags
debug
.repro
foo.*
*.log
data

View File

@ -1,6 +0,0 @@
---@type ChadrcConfig
local M = {}
M.ui = {theme = 'onedark'}
M.plugins = "custom.plugins"
M.mappings = require "custom.mappings"
return M

View File

@ -1,21 +0,0 @@
local on_attach = require("plugins.configs.lspconfig").on_attach
local capabilities = require("plugins.configs.lspconfig").capabilities
local lspconfig = require "lspconfig"
local servers = {
"clangd",
"cssls",
"html",
"gopls",
"lua_ls",
"svelte",
"tsserver",
}
for _, lsp in ipairs(servers) do
lspconfig[lsp].setup {
on_attach = on_attach,
capabilities = capabilities,
}
end

View File

@ -1,9 +0,0 @@
local opt = vim.opt
-- Indenting
opt.expandtab = false
opt.shiftwidth = 4
opt.tabstop = 4
opt.softtabstop = 4
opt.autoindent = true
opt.smartindent = true

View File

@ -1,7 +0,0 @@
local M = {}
M.disabled = {
n = {}
}
return M

View File

@ -1,31 +0,0 @@
local plugins = {
{
"neovim/nvim-lspconfig",
config = function()
require "plugins.configs.lspconfig"
require "custom.configs.lspconfig"
end,
},
{
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = {
-- default
"lua",
-- web dev
"html",
"css",
"javascript",
"typescript",
"svelte",
"json",
-- low level
"go",
},
},
},
}
return plugins

3
.gitignore vendored
View File

@ -3,8 +3,7 @@
!.gitignore
# Neovim
!/.config/nvim/lua/custom/*.lua
!/.config/nvim/lua/custom/configs/*.lua
!/.config/nvim
# Nushell
!/.config/nushell/*.nu