From cc6768cf7f6d6789a3947e4099f52534cb3067fd Mon Sep 17 00:00:00 2001 From: Evaldas Date: Fri, 29 Mar 2024 22:53:56 +0200 Subject: [PATCH] init my setup changes --- init.lua | 30 ++++++++++++++++++++----- lua/custom/plugins/copilot.lua | 3 +++ lua/custom/plugins/lualine.lua | 12 ++++++++++ lua/custom/plugins/typescript-tools.lua | 5 +++++ 4 files changed, 45 insertions(+), 5 deletions(-) create mode 100644 lua/custom/plugins/copilot.lua create mode 100644 lua/custom/plugins/lualine.lua create mode 100644 lua/custom/plugins/typescript-tools.lua diff --git a/init.lua b/init.lua index db55a9e8..a2835d2a 100644 --- a/init.lua +++ b/init.lua @@ -91,7 +91,7 @@ vim.g.mapleader = ' ' vim.g.maplocalleader = ' ' -- Set to true if you have a Nerd Font installed -vim.g.have_nerd_font = false +vim.g.have_nerd_font = true -- [[ Setting options ]] -- See `:help vim.opt` @@ -118,6 +118,12 @@ vim.opt.clipboard = 'unnamedplus' -- Enable break indent vim.opt.breakindent = true +-- Tab behaviour +vim.opt.expandtab = false +vim.opt.smartindent = true +vim.opt.tabstop = 4 +vim.opt.shiftwidth = 4 + -- Save undo history vim.opt.undofile = true @@ -551,6 +557,20 @@ require('lazy').setup({ -- tsserver = {}, -- + clangd = {}, + gopls = {}, + pyright = {}, + rust_analyzer = {}, + omnisharp = {}, + html = {}, + htmx = {}, + svelte = {}, + tailwindcss = {}, + cssls = {}, + -- tsserver = {}, + jsonls = {}, + eslint = {}, + lua_ls = { -- cmd = {...}, -- filetypes = { ...}, @@ -827,16 +847,16 @@ require('lazy').setup({ -- Here are some example plugins that I've included in the Kickstart repository. -- Uncomment any of the lines below to enable them (you will need to restart nvim). -- - -- require 'kickstart.plugins.debug', - -- require 'kickstart.plugins.indent_line', - -- require 'kickstart.plugins.lint', + require 'kickstart.plugins.debug', + require 'kickstart.plugins.indent_line', + require 'kickstart.plugins.lint', -- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua` -- This is the easiest way to modularize your config. -- -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going. -- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins` - -- { import = 'custom.plugins' }, + { import = 'custom.plugins' }, }, { ui = { -- If you are using a Nerd Font: set icons to an empty table which will use the diff --git a/lua/custom/plugins/copilot.lua b/lua/custom/plugins/copilot.lua new file mode 100644 index 00000000..50c2eb88 --- /dev/null +++ b/lua/custom/plugins/copilot.lua @@ -0,0 +1,3 @@ +return { + 'github/copilot.vim', +} \ No newline at end of file diff --git a/lua/custom/plugins/lualine.lua b/lua/custom/plugins/lualine.lua new file mode 100644 index 00000000..445d1138 --- /dev/null +++ b/lua/custom/plugins/lualine.lua @@ -0,0 +1,12 @@ +return { + 'nvim-lualine/lualine.nvim', + dependencies = { 'nvim-tree/nvim-web-devicons' }, + config = function() + require('lualine').setup { + options = { + icons_enabled = true, + theme = 'auto', + }, + } + end, +} \ No newline at end of file diff --git a/lua/custom/plugins/typescript-tools.lua b/lua/custom/plugins/typescript-tools.lua new file mode 100644 index 00000000..eb021e37 --- /dev/null +++ b/lua/custom/plugins/typescript-tools.lua @@ -0,0 +1,5 @@ +return { + "pmizio/typescript-tools.nvim", + dependencies = { "nvim-lua/plenary.nvim", "neovim/nvim-lspconfig" }, + opts = {}, +} \ No newline at end of file