diff --git a/.config/Code - OSS/User/settings.json b/.config/Code - OSS/User/settings.json new file mode 100644 index 0000000..a7dbd3f --- /dev/null +++ b/.config/Code - OSS/User/settings.json @@ -0,0 +1,28 @@ +{ + "editor.fontFamily": "UbuntuMono Nerd Font", + "editor.fontSize": 15, + "editor.hideCursorInOverviewRuler": true, + "editor.insertSpaces": false, + "editor.renderFinalNewline": "off", + "editor.scrollbar.vertical": "hidden", + "editor.scrollbar.verticalScrollbarSize": 0, + "editor.scrollBeyondLastLine": false, + "files.insertFinalNewline": false, + "git.confirmSync": false, + "git.enableSmartCommit": true, + "gitProjectManager.baseProjectsFolders": ["/home/eduard/projects"], + "gitProjectManager.checkRemoteOrigin": false, + "gitProjectManager.ignoredFolders": ["node_modules"], + "gitProjectManager.maxDepthRecursion": 2, + "gitProjectManager.openInNewWindow": false, + "gitProjectManager.storeRepositoriesBetweenSessions": true, + "go.lintTool": "golangci-lint", + "go.lintFlags": ["--fast"], + "security.workspace.trust.enabled": false, + "window.menuBarVisibility": "hidden", + "window.zoomLevel": 1, + "workbench.activityBar.visible": false, + "workbench.statusBar.visible": false, + "workbench.iconTheme": "material-icon-theme", + "workbench.startupEditor": "none" +} \ No newline at end of file diff --git a/.config/nvim/lua/custom/chadrc.lua b/.config/nvim/lua/custom/chadrc.lua new file mode 100644 index 0000000..3a87a9a --- /dev/null +++ b/.config/nvim/lua/custom/chadrc.lua @@ -0,0 +1,6 @@ +---@type ChadrcConfig +local M = {} +M.ui = {theme = 'onedark'} +M.plugins = "custom.plugins" +M.mappings = require "custom.mappings" +return M diff --git a/.config/nvim/lua/custom/configs/lspconfig.lua b/.config/nvim/lua/custom/configs/lspconfig.lua new file mode 100644 index 0000000..0eaf369 --- /dev/null +++ b/.config/nvim/lua/custom/configs/lspconfig.lua @@ -0,0 +1,21 @@ + +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 diff --git a/.config/nvim/lua/custom/init.lua b/.config/nvim/lua/custom/init.lua new file mode 100644 index 0000000..06d3519 --- /dev/null +++ b/.config/nvim/lua/custom/init.lua @@ -0,0 +1,9 @@ +local opt = vim.opt + +-- Indenting +opt.expandtab = false +opt.shiftwidth = 4 +opt.tabstop = 4 +opt.softtabstop = 4 +opt.autoindent = true +opt.smartindent = true diff --git a/.config/nvim/lua/custom/mappings.lua b/.config/nvim/lua/custom/mappings.lua new file mode 100644 index 0000000..9c3f03d --- /dev/null +++ b/.config/nvim/lua/custom/mappings.lua @@ -0,0 +1,7 @@ +local M = {} + +M.disabled = { + n = {} +} + +return M diff --git a/.config/nvim/lua/custom/plugins.lua b/.config/nvim/lua/custom/plugins.lua new file mode 100644 index 0000000..e2d6b21 --- /dev/null +++ b/.config/nvim/lua/custom/plugins.lua @@ -0,0 +1,31 @@ +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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e4848c8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +* +!*/ +!.gitignore + +# Neovim +!/.config/nvim/lua/custom/*.lua +!/.config/nvim/lua/custom/configs/*.lua + +# VS Code +!/.config/Code - OSS/User/settings.json diff --git a/README.md b/README.md deleted file mode 100644 index dd59fff..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# home - -Home directory \ No newline at end of file